mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 18:43:10 +08:00
Refactor options and add options builder
This commit is contained in:
@@ -28,11 +28,14 @@ namespace MQTTnet.TestApp.NetCore
|
||||
|
||||
var options = new ManagedMqttClientOptions
|
||||
{
|
||||
ClientOptions = new MqttClientTcpOptions
|
||||
ClientOptions = new MqttClientOptions
|
||||
{
|
||||
Server = "broker.hivemq.com",
|
||||
ClientId = "MQTTnetManagedClientTest",
|
||||
Credentials = new RandomPassword()
|
||||
Credentials = new RandomPassword(),
|
||||
ChannelOptions = new MqttClientTcpOptions
|
||||
{
|
||||
Server = "broker.hivemq.com"
|
||||
}
|
||||
},
|
||||
|
||||
AutoReconnectDelay = TimeSpan.FromSeconds(1),
|
||||
|
||||
Reference in New Issue
Block a user