1
This commit is contained in:
@@ -35,7 +35,7 @@ namespace RIZO_Application.Modules.ModuleName.ViewModels
|
||||
_eventAggregator.GetEvent<SystemLogEvent>().Publish($"Mqtt初始化……");
|
||||
|
||||
string serverUrl = GetMqttConfigValue(MqttConfigs.Current?.ServerUrl);
|
||||
string clientId = GetMqttConfigValue(MqttConfigs.Current?.ClientId);
|
||||
string clientId = GetMqttConfigValue(MqttConfigs.Current?.ClientId) + Guid.NewGuid().ToString("N");
|
||||
|
||||
_mqttHelper = new MqttHelper(serverUrl, 1883, clientId);
|
||||
_mqttHelper.MessageReceived += HandleMqttMessage;
|
||||
|
||||
Reference in New Issue
Block a user