BinaryCommunicationReadFromCoreServerAsync 方法 (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.
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public virtual Task<OperateResult<byte[]>> ReadFromCoreServerAsync(
IEnumerable<byte[]> send
)
Public Overridable Function ReadFromCoreServerAsync (
send As IEnumerable(Of Byte())
) As Task(Of OperateResult(Of Byte()))
public:
virtual Task<OperateResult<array<unsigned char>^>^>^ ReadFromCoreServerAsync(
IEnumerable<array<unsigned char>^>^ send
)
abstract ReadFromCoreServerAsync :
send : IEnumerable<byte[]> -> Task<OperateResult<byte[]>>
override ReadFromCoreServerAsync :
send : IEnumerable<byte[]> -> Task<OperateResult<byte[]>>
参数
- send
- 类型:System.Collections.GenericIEnumerableByte
发送的报文列表信息
返回值
类型:
TaskOperateResultByte是否接收成功
参见