From 4f0ab0ad21ce450b7856d50f98322a7899361386 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 22 九月 2020 10:30:01 +0800
Subject: [PATCH] 不要下载这个备份
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlWifiLogic.cs | 29 +++++++++++++++--------------
1 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlWifiLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlWifiLogic.cs
old mode 100644
new mode 100755
index 9fadede..c7bc442
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlWifiLogic.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlWifiLogic.cs
@@ -164,8 +164,8 @@
/// 鍙樻洿缃戠粶鏃剁殑浜嬩欢
/// </summary>
private string changedNetworkTime = string.Empty;
- /// <summary>
- /// 褰撳墠 wifi 鐨�
+ /// <summary>
+ /// 褰撳墠 wifi 鐨�
/// </summary>
private string oldSsid = string.Empty;
@@ -185,6 +185,7 @@
tcpClient = new System.Net.Sockets.TcpClient();
tcpClient.Connect("192.168.8.1", 5000);
networkStream = tcpClient.GetStream();
+ networkStream.ReadTimeout = 1000;
//鍔犲瘑鏁版嵁
string sendDataMsg = "hdl1985.";
string DefaultdesKey = "hdl1985.";
@@ -379,22 +380,22 @@
/// <param name="value">0:娌℃湁缃戠粶 1:4G 2:wifi</param>
public void NetworkStateChanged(int value)
{
- if(Common.Config.Instance.HomeId==string.Empty)
- {
- //鍦ㄧ櫥褰曠晫闈笉澶勭悊
- return;
- }
+ if (Common.Config.Instance.HomeId == string.Empty)
+ {
+ //鍦ㄧ櫥褰曠晫闈笉澶勭悊
+ return;
+ }
#if iOS
var nowSsid = this.SSID;
- if (this.oldSsid == nowSsid)
- {
- //濡傛灉褰撳墠 wifi 鐨勫悕瀛椾竴鏍凤紝鍒欎笉澶勭悊
- return;
+ if (this.oldSsid == nowSsid)
+ {
+ //濡傛灉褰撳墠 wifi 鐨勫悕瀛椾竴鏍凤紝鍒欎笉澶勭悊
+ ZigBee.Common.Application.FindGateWaySocket.Start();
+ return;
}
- this.oldSsid = nowSsid;
+ this.oldSsid = nowSsid;
#endif
-
- //娌℃湁缃戠粶
+ //娌℃湁缃戠粶
if (value == 0)
{
this.CanAccessHttp = false;
--
Gitblit v1.8.0