wxr
2023-07-10 46a03f3b19b39cfa6e00b7af41c1ef90ae812e26
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;
            }
@@ -138,6 +140,7 @@
            //mqtt连接数据读取  A协议网络设备信息读取回复 处理
            if (((IPEndPoint)packet.RemoteEndPoint).Port == 8585)
            {
               MainPage.Log($"局域网udp信息");
               Control.Ins.ConvertReceiveData(bytes, ((IPEndPoint)packet.RemoteEndPoint).Address.ToString());
            }
            else if (((IPEndPoint)packet.RemoteEndPoint).Port == 6000)//处理bus 6000端口的数据