HDL_ON/DAL/DriverLayer/UdpSocket.cs
@@ -50,8 +50,10 @@ busSocket.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, new MulticastOption(IPAddress.Parse("239.0.168.188"))); } catch{ busSocket = null; catch (Exception ex){ MainPage.Log ($"udp port bind error : {ex.Message}"); busSocket = null; return; } @@ -75,7 +77,8 @@ } catch { } busSocket = null; MainPage.Log("Socket关闭"); HDL_ON.DriverLayer.Control.Ins.GatewayOnline_Cloud = HDL_ON.DriverLayer.Control.Ins.GatewayOnline_Local = false; MainPage.Log("Socket关闭"); } /// <summary>