JLChen
2020-12-22 d7d1a03f56880d5edb3541df39d3ba62869dd655
2020-12-22 1.网络变化,断开重连一次
2个文件已修改
36 ■■■■■ 已修改文件
.vs/HDL_APP_Project/xs/UserPrefs.xml 27 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/Common/HDLCommon.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.vs/HDL_APP_Project/xs/UserPrefs.xml
@@ -1,16 +1,6 @@
<Properties StartupConfiguration="{D998E133-F0DD-4760-BE3C-461632F54DA4}|Default">
  <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.08FD445C-3EE8-4ED2-BF28-B42ADD0DA92C" />
  <MonoDevelop.Ide.Workbench ActiveDocument="HDL_ON/Common/HDLCommon.cs">
    <Files>
      <File FileName="HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs" Line="220" Column="1" />
      <File FileName="HDL-ON_iOS/AppDelegate.cs" Line="417" Column="16" />
      <File FileName="HDL_ON/DAL/DriverLayer/UdpSocket.cs" />
      <File FileName="HDL-ON_Android/Application.cs" Line="365" Column="18" />
      <File FileName="HDL_ON/Entity/Function/Function.cs" Line="164" Column="18" />
      <File FileName="HDL_ON/Common/HDLCommon.cs" Line="326" Column="52" />
      <File FileName="HDL_ON/Entity/DB_ResidenceData.cs" Line="129" Column="29" />
      <File FileName="HDL_ON/UI/MainPage.cs" Line="50" Column="47" />
    </Files>
  <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.00008030-00014C392121802E" />
  <MonoDevelop.Ide.Workbench>
    <Pads>
      <Pad Id="ProjectPad">
        <State name="__root__">
@@ -20,13 +10,12 @@
                <Node name="Utlis" expanded="True" />
                <Node name="HDLCommon.cs" selected="True" />
              </Node>
              <Node name="Entity" expanded="True">
                <Node name="Device" expanded="True" />
                <Node name="Function" expanded="True" />
              <Node name="DAL" expanded="True">
                <Node name="DriverLayer" expanded="True" />
                <Node name="Mqtt" expanded="True" />
                <Node name="Server" expanded="True" />
              </Node>
              <Node name="UI" expanded="True">
                <Node name="UI1-Login" expanded="True" />
              </Node>
              <Node name="UI" expanded="True" />
            </Node>
            <Node name="HDL-ON_Android" expanded="True" />
            <Node name="HDL-ON_iOS" expanded="True" />
@@ -41,7 +30,7 @@
    <String>Shared.Droid.TouchID/Shared.Droid.TouchID.csproj</String>
    <String>Shared.IOS/Shared.IOS.csproj</String>
  </DisabledProjects>
  <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
  <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" />
  <MonoDevelop.Ide.ItemProperties.HDL-ON__Android PreferredExecutionTarget="Android.364c4b3158493098" />
  <MonoDevelop.Ide.DebuggingService.Breakpoints>
    <BreakpointStore />
HDL_ON/Common/HDLCommon.cs
@@ -450,9 +450,16 @@
            //网络状态变化 重置网关状态重新搜索
            Control.Ins.GatewayOnline = false;
            //网络变化,断开重连一次
            if (Control.Ins.IsRemote)
            {
                Control.Ins.IsRemote = false;
                DAL.Mqtt.MqttClient.DisConnectRemote("UpdateInternetStatus", false);
            }
            if (internetStatus == 0)//没有网络连接 0
            {
                //Control.Ins.GatewayOnline = false;
                Control.Ins.GatewayOnline = false;
                Control.Ins.IsRemote = false;
                MainPage.InternetStatus = 0;
            }