点击或拖拽改变大小

NetworkUdpBaseReadFromCoreServer 方法 (Byte, Boolean, Boolean)

核心的数据交互读取,发数据发送到通道上去,然后从通道上接收返回的数据
The core data is read interactively, the data is sent to the serial port, and the returned data is received from the serial port

命名空间:  HslCommunication.Core.Net
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public virtual OperateResult<byte[]> ReadFromCoreServer(
	byte[] send,
	bool hasResponseData,
	bool usePackAndUnpack
)

参数

send
类型:SystemByte
完整的报文内容
hasResponseData
类型:SystemBoolean
是否有等待的数据返回,默认为 true
usePackAndUnpack
类型:SystemBoolean
是否需要对命令重新打包,在重写PackCommandWithHeader(Byte)方法后才会有影响

返回值

类型:OperateResultByte
是否成功的结果对象
参见