点击或拖拽改变大小

SecsHsmsSendByCommandAsync 方法 (Byte, Byte, Byte, Boolean)

将数据发送到设备方去,只是单纯的发送数据过去,并不等待设备的数据返回,返回是否发送成功。
Sending data to the device side simply sends the data to the past, and does not wait for the data from the device to return, and returns whether the transmission is successful.

命名空间:  HslCommunication.Secs
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public Task<OperateResult> SendByCommandAsync(
	byte stream,
	byte function,
	byte[] data,
	bool back
)

参数

stream
类型:SystemByte
功能码1
function
类型:SystemByte
功能码2
data
类型:SystemByte
原始的字节数据
back
类型:SystemBoolean
是否必须返回,此标记仅仅是secs报文的是否返回标记,不表示问答模式

返回值

类型:TaskOperateResult
是否发送成功的结果对象
参见