| | |
| | | { |
| | | add (); |
| | | if (CommonPage.IsRemote && !isLocal) { |
| | | if (!SmartHome.MqttCommon.IsGatewayOnline) { |
| | | System.Threading.Thread.Sleep (500); |
| | | Utlis.WriteLine ($"网关不在线 取消发送:" + SendFlag); |
| | | Packet.HaveSendCount = 3; |
| | | allDone.Set (); |
| | | return; |
| | | } |
| | | //if (!SmartHome.MqttCommon.IsGatewayOnline) { |
| | | // System.Threading.Thread.Sleep (500); |
| | | // Utlis.WriteLine ($"网关不在线 取消发送:" + SendFlag); |
| | | // Packet.HaveSendCount = 3; |
| | | // allDone.Set (); |
| | | // return; |
| | | //} |
| | | if (IsEnterBackground) { |
| | | System.Threading.Thread.Sleep (500); |
| | | Utlis.WriteLine ("已进入后台 取消发送"); |