JadeSerialPort Methods
The methods defined in the JadeSerialPort class are summarized in the following table.
Method | Description |
---|---|
close | Closes a connection to a remote application and then returns |
closeAsynch | Closes a connection to a remote application and returns immediately |
listen | Listens for a remote application to connect to Jade and returns when a connection is established |
listenAsynch | Listens for a remote application to connect to Jade |
open | Establishes a connection to a remote application and returns when established |
openAsynch | Establishes a connection to a remote application and returns immediately |
readBinary | Reads binary data from the connection and returns when the data has been read or when a block of data is received |
readBinaryAsynch | Reads binary data from the connection and returns immediately |
readUntil | Reads data from the connection and returns when the specified delimiter is found in the data stream |
readUntilAsynch | Reads data from the connection until the specified delimiter is found in the data stream and returns immediately |
writeBinary | Writes binary data to the connection and returns when the operation is complete |
writeBinaryAsynch | Writes binary data to the connection and returns immediately |