一款简单易用的基础网络通讯组件库。

ISerialReceivingPluginOnSerialReceiving 方法

当串行端口接收到数据时触发的异步事件处理方法。

Definition

命名空间: TouchSocket.SerialPorts
程序集: TouchSocket.SerialPorts (在 TouchSocket.SerialPorts.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
Task OnSerialReceiving(
	ISerialPortSession client,
	ByteBlockEventArgs e
)

参数

client  ISerialPortSession
触发事件的串行端口会话对象。
e  ByteBlockEventArgs
包含接收数据的事件参数对象。

返回值

Task
一个Task对象,代表异步操作的结果。

参见