mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
Fixed an TLS issue in the MqttClientOptionsBuilder; Fix a subscription issue in the managed client.
This commit is contained in:
@@ -45,7 +45,8 @@ namespace MQTTnet.TestApp.NetCore
|
||||
await managedClient.StartAsync(options);
|
||||
|
||||
await managedClient.SubscribeAsync(new TopicFilter("xyz", MqttQualityOfServiceLevel.AtMostOnce));
|
||||
|
||||
await managedClient.SubscribeAsync(new TopicFilter("abc", MqttQualityOfServiceLevel.AtMostOnce));
|
||||
|
||||
await managedClient.PublishAsync(new MqttApplicationMessageBuilder().WithTopic("Step").WithPayload("3").Build());
|
||||
|
||||
Console.WriteLine("Managed client started.");
|
||||
|
||||
Reference in New Issue
Block a user