点击或拖拽改变大小

CommunicationPipeReadFromCoreServerAsync 方法

将数据发送到当前的管道里,并从管道接收相关的数据信息,可以指定消息类型,发送数据,是否有数据响应,休眠时间
To send data to the current pipeline and receive relevant data information from the pipeline, you can specify the message type, the data sent, whether there is a data response, and the sleep time

命名空间:  HslCommunication.Core.Pipe
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.1.0.0 (12.1.0.0)
语法
public virtual Task<OperateResult<byte[]>> ReadFromCoreServerAsync(
	INetMessage netMessage,
	byte[] sendValue,
	bool hasResponseData,
	Action<byte[]> logMessage = null
)

参数

netMessage
类型:HslCommunication.Core.IMessageINetMessage
当前接收的消息体信息
sendValue
类型:SystemByte
等待发送的数据
hasResponseData
类型:SystemBoolean
是否有数据返回
logMessage (Optional)
类型:SystemActionByte
用于消息记录的日志信息

返回值

类型:TaskOperateResultByte
读取的结果对象
参见