点击或拖拽改变大小

SerialBaseClearSerialCache 方法

清除串口缓冲区的数据,并返回该数据,如果缓冲区没有数据,返回的字节数组长度为0
The number sent clears the data in the serial port buffer and returns that data, or if there is no data in the buffer, the length of the byte array returned is 0

命名空间:  HslCommunication.Serial
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public OperateResult<byte[]> ClearSerialCache()

返回值

类型:OperateResultByte
是否操作成功的方法
参见