浏览代码

Fix credential generation.

release/3.x.x
Christian Kratky 5 年前
父节点
当前提交
9da3377aa7
共有 1 个文件被更改,包括 8 次插入5 次删除
  1. +8
    -5
      Tests/MQTTnet.TestApp.UniversalWindows/MainPage.xaml.cs

+ 8
- 5
Tests/MQTTnet.TestApp.UniversalWindows/MainPage.xaml.cs 查看文件

@@ -119,12 +119,15 @@ namespace MQTTnet.TestApp.UniversalWindows
throw new InvalidOperationException();
}

options.Credentials = new MqttClientCredentials
if (!string.IsNullOrEmpty(User.Text))
{
Username = User.Text,
Password = Password.Text
};

options.Credentials = new MqttClientCredentials
{
Username = User.Text,
Password = Password.Text
};
}
options.CleanSession = CleanSession.IsChecked == true;
options.KeepAlivePeriod = TimeSpan.FromSeconds(double.Parse(KeepAliveInterval.Text));



正在加载...
取消
保存