MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
.Build();
//MqttClientUnsubscribeOptions mqttClientUnsubscribeOptions = new MqttClientUnsubscribeOptions();
//mqttClientUnsubscribeOptions.TopicFilters = mqttClient.Options.
//await mqttClient.UnsubscribeAsync(mqttClientUnsubscribeOptions);
mqttSubscribeOptions.TopicFilters = mqttTopicFilters;
var response = await mqttClient.SubscribeAsync(mqttSubscribeOptions, CancellationToken.None);`
when I click Subscribe several times,I received several identical messages at the same time, Can't it remove duplicate topics,or how to unsbuscribe all topics?
MqttTest.zip `var mqttSubscribeOptions = mqttFactory.CreateSubscribeOptionsBuilder()
when I click Subscribe several times,I received several identical messages at the same time, Can't it remove duplicate topics,or how to unsbuscribe all topics?