A component of the HostedMqttService. This class is responsible for maintaining list of subscribed topics synchronised with the MQTT broker, even in case of temporary disconnection.
◆ Subscribe() [1/2]
async Task IotDash.Services.Mqtt.Implementation.MqttNet_Subscriber.Subscribe |
( |
IEnumerable< string > |
topics | ) |
|
|
inline |
Add topics to subscription list and potentially update with the broker.
- Parameters
-
topics | List of the topic names. |
- Returns
- Task that completes when the communication with broker is done.
◆ Subscribe() [2/2]
Task IotDash.Services.Mqtt.Implementation.MqttNet_Subscriber.Subscribe |
( |
string |
topic | ) |
|
Add a topic to subscription list and potentially update with the broker.
- Parameters
-
- Returns
- Task that completes when the communication with broker is done.
◆ Unsubscribe() [1/2]
async Task IotDash.Services.Mqtt.Implementation.MqttNet_Subscriber.Unsubscribe |
( |
IEnumerable< string > |
topics | ) |
|
|
inline |
Remove topics from subscription list and potentially update with the broker.
- Parameters
-
topics | List of the topics to remove. |
- Returns
- Task that completes when the communication with broker is done.
◆ Unsubscribe() [2/2]
Task IotDash.Services.Mqtt.Implementation.MqttNet_Subscriber.Unsubscribe |
( |
string |
topic | ) |
|
Remove a topic from subscription list and potentially update with the broker.
- Parameters
-
topic | The topic to remove. |
- Returns
- Task that completes when the communication with broker is done.
The documentation for this class was generated from the following file:
- Services/Implementations/Mqtt/MqttNet_Subscriber.cs