U8调整
This commit is contained in:
@@ -40,7 +40,7 @@ namespace ZR.Common.MqttHelper
|
||||
var builder = new MqttClientOptionsBuilder()
|
||||
.WithClientId(mqttConfig["ClientId"] ?? Guid.NewGuid().ToString())
|
||||
.WithTcpServer(mqttConfig["Server"], mqttConfig.GetValue<int>("Port", 1883))
|
||||
.WithCleanSession();
|
||||
.WithCleanSession(false);
|
||||
return builder.Build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user