HDL Home App 第二版本 旧平台金堂用 正在使用
hxb
2022-08-30 25429f085093d89d543a0b90e30d0d62d1b7dac9
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlWifiLogic.cs
@@ -38,13 +38,14 @@
        {
            get
            {
                string myId = this.SSID;
                //string myId = this.SSID;
                if (myId != null && myId.StartsWith("hdlZigbeeGW") == true)
                {
                    return true;
                }
                return false;
                //if (myId != null && myId.StartsWith("hdlZigbeeGW") == true)
                //{
                //    return true;
                //}
                //2021.03.22 个人决定,不再检测这个东西
                return true;
            }
        }
@@ -55,13 +56,14 @@
        {
            get
            {
                string myId = this.SSID;
                //string myId = this.SSID;
                if (myId != null && myId.StartsWith("hdlZigbeeGW-") == true)
                {
                    return true;
                }
                return false;
                //if (myId != null && myId.StartsWith("hdlZigbeeGW-") == true)
                //{
                //    return true;
                //}
                //2021.03.22 个人决定,不再检测这个东西
                return true;
            }
        }
@@ -535,7 +537,9 @@
        public bool StartSmartConnection(string wifiName, string wifiPsw, string p2 = "")
        {
            //初始化Wi-Fi连接
            Com.Mediatek.Elian.ElianNative.InitSmartConnection("1", 1, 1);
            //Com.Mediatek.Elian.ElianNative.InitSmartConnection("1", 1, 1);
            Com.Mediatek.Elian.ElianNative.InitSmartConnection( 1, 1);
            //开始Wi-Fi连接
            var result = Com.Mediatek.Elian.ElianNative.StartSmartConnection(wifiName, wifiPsw, p2);
            return true;