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
)
Public Function SendMqttCommand (
control As Byte,
flags As Byte,
variableHeader As Byte(),
payLoad As Byte(),
Optional aesCryptography As AesCryptography = Nothing
) As OperateResult
public:
OperateResult^ SendMqttCommand(
unsigned char control,
unsigned char flags,
array<unsigned char>^ variableHeader,
array<unsigned char>^ payLoad,
AesCryptography^ aesCryptography = nullptr
)
member SendMqttCommand :
control : byte *
flags : byte *
variableHeader : byte[] *
payLoad : byte[] *
?aesCryptography : AesCryptography
(* Defaults:
let _aesCryptography = defaultArg aesCryptography null
*)
-> OperateResult
参数
- control
- 类型:SystemByte
控制码 - flags
- 类型:SystemByte
标记 - variableHeader
- 类型:SystemByte
可变头的字节内容 - payLoad
- 类型:SystemByte
负载数据 - aesCryptography (Optional)
- 类型:HslCommunication.Core.SecurityAesCryptography
AES数据加密对象
返回值
类型:
OperateResult是否发送成功
参见