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
)
Public Function SendMqttCommand (
head As Byte,
variableHeader As Byte(),
payLoad As Byte(),
Optional aesCryptography As AesCryptography = Nothing
) As OperateResult
public:
OperateResult^ SendMqttCommand(
unsigned char head,
array<unsigned char>^ variableHeader,
array<unsigned char>^ payLoad,
AesCryptography^ aesCryptography = nullptr
)
member SendMqttCommand :
head : byte *
variableHeader : byte[] *
payLoad : byte[] *
?aesCryptography : AesCryptography
(* Defaults:
let _aesCryptography = defaultArg aesCryptography null
*)
-> OperateResult
参数
- head
- 类型:SystemByte
头子节信息 - variableHeader
- 类型:SystemByte
数据头信息 - payLoad
- 类型:SystemByte
数据负载 - aesCryptography (Optional)
- 类型:HslCommunication.Core.SecurityAesCryptography
aes加密信息,如果有的话
返回值
类型:
OperateResult是否发送成功
参见