mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 03:24:33 +08:00
Fix breaking changes
This commit is contained in:
@@ -84,9 +84,14 @@
|
||||
</StackPanel>
|
||||
</PivotItem>
|
||||
<PivotItem Header="Server">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button Width="120" Margin="0,0,10,0" Click="StartServer">Start</Button>
|
||||
<Button Width="120" Margin="0,0,10,0" Click="StopServer">Stop</Button>
|
||||
<StackPanel Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
<TextBlock>Port:</TextBlock>
|
||||
<TextBox x:Name="ServerPort" Text="1883"></TextBox>
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button Width="120" Margin="0,0,10,0" Click="StartServer">Start</Button>
|
||||
<Button Width="120" Margin="0,0,10,0" Click="StopServer">Stop</Button>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</PivotItem>
|
||||
</Pivot>
|
||||
|
||||
@@ -329,7 +329,11 @@ namespace MQTTnet.TestApp.UniversalWindows
|
||||
return;
|
||||
}
|
||||
|
||||
_mqttServer = new MqttFactory().CreateMqttServer();
|
||||
_mqttServer = new MqttFactory().CreateMqttServer(o =>
|
||||
{
|
||||
o.DefaultEndpointOptions.Port = int.Parse(ServerPort.Text);
|
||||
});
|
||||
|
||||
await _mqttServer.StartAsync();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user