| | |
| | | MainPage.Log($"name : {Name} ; mac : {mac}"); |
| | | if (DB_ResidenceData.Instance.residenceGatewayMAC == mac) |
| | | { |
| | | DriverLayer.Control.Ins.GatewayOnline = true; |
| | | DriverLayer.Control.Ins.IsRemote = false; |
| | | Control.Ins.GatewayOnline = true; |
| | | Control.Ins.IsRemote = false; |
| | | DAL.Mqtt.MqttClient.DisConnectRemote();//断开mqtt |
| | | } |
| | | break; |
| | |
| | | receiveFlag += string.Format("{0},{1}", usefulBytes[0], usefulBytes[1]); |
| | | break; |
| | | case Command.ReadRemark: |
| | | DriverLayer.Control.Ins.myUdp.ReceiveReadRemark(usefulBytes); |
| | | new Control_Udp().ReceiveReadRemark(usefulBytes); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | DriverLayer.Control.Ins.myUdp.ReceiveRepeatManager(receiveFlag); |
| | | Control_Udp.ReceiveRepeatManager(receiveFlag,usefulBytes); |
| | | } |
| | | catch (Exception ex) |
| | | { |