点击或拖拽改变大小

MqttSessionSendMqttCommand 方法 (Byte, Byte, Byte, AesCryptography)

发送指定的MQTT命令到会话中去,可以指定头子节,变量头信息,数据负载,返回是否发送成功
Send the specified MQTT command to the session. You can specify the header section, variable header information, data load, and return whether the sending was successful

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.3.1.0 (12.3.1.0)
语法
public OperateResult SendMqttCommand(
	byte head,
	byte[] variableHeader,
	byte[] payLoad,
	AesCryptography aesCryptography = null
)

参数

head
类型:SystemByte
头子节信息
variableHeader
类型:SystemByte
数据头信息
payLoad
类型:SystemByte
数据负载
aesCryptography (Optional)
类型:HslCommunication.Core.SecurityAesCryptography
aes加密信息,如果有的话

返回值

类型:OperateResult
是否发送成功
参见