MqttClientSubscribeMessage 方法 (MqttSubscribeMessage) |
向服务器订阅一个主题消息,可以指定订阅的主题数组,订阅的质量等级,还有消息标识符
To subscribe to a topic message from the server, you can specify the subscribed topic array,
the subscription quality level, and the message identifier
命名空间:
HslCommunication.MQTT
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult SubscribeMessage(
MqttSubscribeMessage subcribeMessage
)
Public Function SubscribeMessage (
subcribeMessage As MqttSubscribeMessage
) As OperateResult
public:
OperateResult^ SubscribeMessage(
MqttSubscribeMessage^ subcribeMessage
)
member SubscribeMessage :
subcribeMessage : MqttSubscribeMessage -> OperateResult
参数
- subcribeMessage
- 类型:HslCommunication.MQTTMqttSubscribeMessage
订阅的消息本体
返回值
类型:
OperateResult是否订阅成功
参见