mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-30 10:42:48 +08:00
Refactor shared library. Extend error messages
This commit is contained in:
@@ -81,6 +81,8 @@ namespace MQTTnet.TestApp.UniversalWindows
|
||||
Password = Password.Text
|
||||
};
|
||||
|
||||
options.CleanSession = CleanSession.IsChecked == true;
|
||||
|
||||
try
|
||||
{
|
||||
if (_mqttClient != null)
|
||||
@@ -226,6 +228,7 @@ namespace MQTTnet.TestApp.UniversalWindows
|
||||
.WithTcpServer("broker.hivemq.com")
|
||||
.WithCredentials("bud", "%spencer%")
|
||||
.WithTls()
|
||||
.WithCleanSession()
|
||||
.Build();
|
||||
|
||||
await client.ConnectAsync(options);
|
||||
|
||||
Reference in New Issue
Block a user