public interface IAsciiTransport
Modifier and Type | Method and Description |
---|---|
boolean |
connect()
Connect the transport
|
ConnectionStatus |
connectionStatus() |
void |
disconnect()
Disconnect the transport
|
java.lang.String |
getDisplayInfoLine() |
java.lang.String |
getDisplayName() |
java.lang.String |
id()
An identifier for the transport - this value tries to correspond to a reader in
a way that is consistent across app launches and tries, but is not guaranteed, to be unique.
|
Observable<java.util.ArrayList<java.lang.String>> |
linesReceivedEvent()
Provides an Observable instance that can be monitored for incoming response lines
arg1 of the update() method will contain an ArrayList
|
TransportType |
type() |
void |
writeLine(java.lang.String line)
Sends the given line over the transport
|
TransportType type()
java.lang.String id()
java.lang.String getDisplayName()
java.lang.String getDisplayInfoLine()
boolean connect()
void disconnect()
ConnectionStatus connectionStatus()
Observable<java.util.ArrayList<java.lang.String>> linesReceivedEvent()
void writeLine(java.lang.String line)
line
- the line to be written