Add samples.

This commit is contained in:
Christian
2022-06-18 11:56:19 +02:00
parent 14eb202873
commit f3ef2dbf7c
2 changed files with 74 additions and 3 deletions
-3
View File
@@ -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;
}
}