mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 03:24:33 +08:00
Add extension method for subscriptions
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
<TextBlock>Server:</TextBlock>
|
||||
<TextBox x:Name="Server"></TextBox>
|
||||
<TextBlock>Port:</TextBlock>
|
||||
<TextBox x:Name="Port" Text="1883"></TextBox>
|
||||
<TextBlock>User:</TextBlock>
|
||||
<TextBox x:Name="User"></TextBox>
|
||||
<TextBlock>Password:</TextBlock>
|
||||
|
||||
@@ -78,6 +78,7 @@ namespace MQTTnet.TestApp.UniversalWindows
|
||||
options.ChannelOptions = new MqttClientTcpOptions
|
||||
{
|
||||
Server = Server.Text,
|
||||
Port = int.Parse(Port.Text),
|
||||
TlsOptions = tlsOptions
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user