mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
Add samples.
This commit is contained in:
@@ -128,11 +128,8 @@ public static class Server_Simple_Samples
|
||||
|
||||
// Due to security reasons the "default" endpoint (which is unencrypted) is not enabled by default!
|
||||
var mqttServerOptions = mqttFactory.CreateServerOptionsBuilder().WithDefaultEndpoint().Build();
|
||||
|
||||
var server = mqttFactory.CreateMqttServer(mqttServerOptions);
|
||||
|
||||
await server.StartAsync();
|
||||
|
||||
return server;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user