Crabtree/SmartHome/UI/SimpleControl/MqttCommon.cs
@@ -101,12 +101,12 @@
                                        }
                                        var aesDecryptTopic = e.ApplicationMessage.Topic;
                                        var aesDecryptPayload = e.ApplicationMessage.Payload;
                                        Console.WriteLine ("Topic={0}", aesDecryptTopic);
                                        //Console.WriteLine ("Topic={0}", aesDecryptTopic);
                                        //if (aesDecryptTopic == $"NotifyBusGateWayInfoChagne/{CurRemoteMACInfo.md5_mac_string}") {//网关上线,需要更新aeskey
                                        //2020-01-11 修改订阅主题地址
                                        if (aesDecryptTopic == $"BusGateWayToClient/{CurRemoteMACInfo.macMark}/NotifyGateWayInfoChange") {//网关上线,需要更新aeskey
                                        if (aesDecryptTopic == $"BusGateWayToClient/{CurRemoteMACInfo.macMark}/NotifyBusGateWayInfoChange") {//网关上线,需要更新aeskey
                                            Console.WriteLine ("网关上线,需要更新aeskey");
                                            //----第二步:读取账号下面的网关列表
                                            var gatewayListUrl = $"{MainPage.RequestHttpsHostMqtt}/Center/Center/GetGatewayPagger"; //App、Buspro软件登录后获取网关列表 http 请求
@@ -418,7 +418,7 @@
                    //topicName = $"/NotifyBusGateWayInfoChagne/{CurRemoteMACInfo.md5_mac_string}";
                    //2020-01-11 修改订阅主题地址
                    topicName = $"BusGateWayToClient/{CurRemoteMACInfo.macMark}/NotifyGateWayInfoChange";
                    topicName = $"BusGateWayToClient/{CurRemoteMACInfo.macMark}/NotifyBusGateWayInfoChange";
                    //if (remoteIsConnected) {
                    try {
                            await RemoteMqttClient.SubscribeAsync (topicName);