点击或拖拽改变大小

MqttHelper.BuildPublishMqttCommand 方法 (String,Byte[], Boolean, AesCryptography)

创建Mqtt发送消息的命令
Create Mqtt command to send messages

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.3.1.0 (12.3.1.0)
语法
public static OperateResult<byte[]> BuildPublishMqttCommand(
	string topic,
	byte[] payload,
	bool retain = false,
	AesCryptography aesCryptography = null
)

参数

topic
类型:System.String
主题消息内容
payload
类型:System.Byte[]
数据负载
retain (Optional)
类型:System.Boolean
是否消息驻留
aesCryptography (Optional)
类型:HslCommunication.Core.Security.AesCryptography
AES数据加密对象

返回值

类型:OperateResult<Byte[]>
结果内容
参见