|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SerialAdapterListener
Listener for SerialAdapter
Methods of this interface are called in case of incomming data on serial port.
| Method Summary | |
|---|---|
void |
onSerialDataReceived(byte[] receivedData,
int adapterId)
Method is called if there were incomming data on port including data closing sequence, see: SerialAdapter.DATA_SEPARATOR_CR_LF and more. |
void |
onSerialDataReceivedInStream(java.io.InputStream receivedData,
int adapterId)
Method is called when there are incomming data on port. |
| Method Detail |
|---|
void onSerialDataReceived(byte[] receivedData,
int adapterId)
SerialAdapter.DATA_SEPARATOR_CR_LF and more.
adapterId - ID of adapter, that called this methodreceivedData - Byte array of incomming data. Data contain closing char sequence.
void onSerialDataReceivedInStream(java.io.InputStream receivedData,
int adapterId)
adapterId - ID of adapter that called this methodreceivedData - Received data - refference to InputStream with received data.SerialAdapter.openPort(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||