public static class SerialEventProtocolHandle.LoggerSerialProtocolHandle extends Object implements SerialEventProtocolHandle
SerialEventProtocolHandle.LoggerSerialProtocolHandleLOGGER_HANDLEmethod| 构造器和说明 |
|---|
LoggerSerialProtocolHandle() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
dataSetReadyEvent(SerialEventProtocol protocol)
数据准备好事件
|
void |
disconnectedEvent(SerialEventProtocol protocol)
失去连接
|
void |
errorEvent(SerialEventProtocol protocol)
中断事件
|
void |
otherEvent(int eventType,
SerialEventProtocol protocol)
其他事件处理
|
void |
printLogger(SerialEventProtocol protocol,
String event)
打印日志
|
void |
readEvent(byte[] receivedData,
SerialEventProtocol protocol)
数据读事件
|
void |
timeoutEvent(SerialEventProtocol protocol)
超时事件
|
void |
writeEvent(SerialEventProtocol protocol) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleprotocolClass, toParameterizedTypepublic void readEvent(byte[] receivedData,
SerialEventProtocol protocol)
SerialEventProtocolHandlereadEvent 在接口中 SerialEventProtocolHandlereceivedData - 读取的数据public void writeEvent(SerialEventProtocol protocol)
writeEvent 在接口中 SerialEventProtocolHandlepublic void disconnectedEvent(SerialEventProtocol protocol)
SerialEventProtocolHandledisconnectedEvent 在接口中 SerialEventProtocolHandlepublic void otherEvent(int eventType,
SerialEventProtocol protocol)
SerialEventProtocolHandleotherEvent 在接口中 SerialEventProtocolHandleeventType - SerialPort.LISTENING_EVENT_DATA_RECEIVED
SerialPort.LISTENING_EVENT_DATA_WRITTEN
SerialPort.LISTENING_EVENT_DATA_AVAILABLE
......public void timeoutEvent(SerialEventProtocol protocol)
SerialEventProtocolHandletimeoutEvent 在接口中 SerialEventProtocolHandlepublic void dataSetReadyEvent(SerialEventProtocol protocol)
SerialEventProtocolHandledataSetReadyEvent 在接口中 SerialEventProtocolHandlepublic void errorEvent(SerialEventProtocol protocol)
SerialEventProtocolHandleerrorEvent 在接口中 SerialEventProtocolHandlepublic void printLogger(SerialEventProtocol protocol, String event)
protocol - Copyright © 2023. All rights reserved.