mirror of
https://github.com/RfidResearchGroup/RFIDtools.git
synced 2026-05-12 11:19:59 -07:00
Communication rebuild.
This commit is contained in:
@@ -69,9 +69,9 @@ public final class ComBridgeAdapter implements Serializable {
|
||||
Log.e(LOG_TAG, "please disconnect your previous con.");
|
||||
continue;
|
||||
}
|
||||
isHasClient = true;
|
||||
new DataThread(mOutputStream, socket.getInputStream()).start();
|
||||
new DataThread(socket.getOutputStream(), mInputStream).start();
|
||||
isHasClient = true;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
isHasClient = false;
|
||||
@@ -90,7 +90,7 @@ public final class ComBridgeAdapter implements Serializable {
|
||||
private OutputStream os;
|
||||
private InputStream is;
|
||||
|
||||
DataThread(OutputStream os, InputStream is) throws IOException {
|
||||
DataThread(OutputStream os, InputStream is) {
|
||||
this.os = os;
|
||||
this.is = is;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user