点击或拖拽改变大小

MqttSessionSendMqttCommand 方法 (Byte, 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 control,
	byte flags,
	byte[] variableHeader,
	byte[] payLoad,
	AesCryptography aesCryptography = null
)

参数

control
类型:SystemByte
控制码
flags
类型:SystemByte
标记
variableHeader
类型:SystemByte
可变头的字节内容
payLoad
类型:SystemByte
负载数据
aesCryptography (Optional)
类型:HslCommunication.Core.SecurityAesCryptography
AES数据加密对象

返回值

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