| | |
| | | } |
| | | //处理接收到的数据 |
| | | UdpPacket_DataProcessing(subnetID, deviceID, command, usefulBytes); |
| | | #if DEBUG |
| | | string ddd = ""; |
| | | foreach(var bb in usefulBytes) |
| | | { |
| | | ddd += bb + ","; |
| | | } |
| | | MainPage.Log(ddd); |
| | | #endif |
| | | //处理是否要重发数据 |
| | | ManagerReceive(subnetID, deviceID, command, usefulBytes); |
| | | } |
| | |
| | | MainPage.Log($"name : {Name} ; mac : {mac}"); |
| | | if (DB_ResidenceData.Instance.residenceGatewayMAC == mac) |
| | | { |
| | | //本地搜索网关成功 |
| | | Control.Ins.IsSearchLocalGatewaySuccessful = true; |
| | | Control.Ins.GatewayOnline = true; |
| | | Control.Ins.IsRemote = false; |
| | | DAL.Mqtt.MqttClient.DisConnectRemote();//断开mqtt |