SubscribeTopic 类 |
命名空间: HslCommunication.MQTT
SubscribeTopic 类型公开以下成员。
名称 | 说明 | |
---|---|---|
SubscribeTopic |
使用指定的主题初始化 Initialize with the specified theme |
名称 | 说明 | |
---|---|---|
SubscribeTick |
主题被订阅的次数 The number of times the topic was subscribed | |
Topic |
主题信息 topic information |
名称 | 说明 | |
---|---|---|
AddSubscribeTick |
增加一个订阅的计数信息,不需要手动调用,在 MqttClient 订阅主题之后,会自动增加 Add a subscription count information, no need to manually call it, it will be automatically added after MqttClient subscribes to the topic | |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
GetHashCode | Serves as the default hash function. (继承自 Object。) | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
RemoveSubscribeTick |
减少一个订阅的计数信息,用户可以手动调用,比如判断是否是最后一次移除,然后决定是否通过 MqttClient 取消订阅主题 Reduce the count information of a subscription, the user can call it manually, such as judging whether it is the last removal, and then decide whether to unsubscribe the topic through MqttClient | |
ToString | Returns a string that represents the current object. (重写 ObjectToString.) | |
TriggerSubscription |
使用指定的参数,触发订阅主题的事件 Using the specified parameters, trigger the event of the subscribed topic |
名称 | 说明 | |
---|---|---|
OnMqttMessageReceived |
当接收到Mqtt订阅的信息的时候触发的事件 Event triggered when a message subscribed to by Mqtt is received |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |