MqttHelperBuildPublishMqttCommand 方法 (MqttPublishMessage, AesCryptography) |
创建Mqtt发送消息的命令
Create Mqtt command to send messages
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> BuildPublishMqttCommand(
MqttPublishMessage message,
AesCryptography aesCryptography = null
)
Public Shared Function BuildPublishMqttCommand (
message As MqttPublishMessage,
Optional aesCryptography As AesCryptography = Nothing
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ BuildPublishMqttCommand(
MqttPublishMessage^ message,
AesCryptography^ aesCryptography = nullptr
)
static member BuildPublishMqttCommand :
message : MqttPublishMessage *
?aesCryptography : AesCryptography
(* Defaults:
let _aesCryptography = defaultArg aesCryptography null
*)
-> OperateResult<byte[]>
参数
- message
- 类型:HslCommunication.MQTTMqttPublishMessage
封装后的消息内容 - aesCryptography (Optional)
- 类型:HslCommunication.Core.SecurityAesCryptography
AES数据加密对象
返回值
类型:
OperateResultByte结果内容
参见