SerialBaseReadFromCoreServerAsync 方法 |
名称 | 说明 | |
---|---|---|
ReadFromCoreServerAsync(Byte) |
将原始的字节数据发送到串口,然后从串口接收一条数据。 The raw byte data is sent to the serial port, and then a piece of data is received from the serial port. | |
ReadFromCoreServerAsync(IEnumerableByte) |
将多个数据报文按顺序发到设备,并从设备接收返回的数据内容,然后拼接成一个Byte[]信息,需要重写UnpackResponseContent(Byte, Byte)方法才能返回正确的结果。 Send multiple data packets to the device in sequence, and receive the returned data content from the device, and then splicing them into a Byte[] message, you need to rewrite UnpackResponseContent(Byte, Byte) method to return the correct result. |