| | |
| | | { |
| | | 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; |
| | | } |
| | | } |
| | | |
| | |
| | | { |
| | | 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; |
| | | } |
| | | } |
| | | |
| | |
| | | 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; |