This commit is contained in:
2025-05-16 13:06:47 +08:00
parent a77b6862ba
commit ca30013095
2 changed files with 19 additions and 18 deletions

View File

@@ -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;