From 2a8a69d99f382bb3f87f8f5c1f6f964bc4f26a2b Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 17 十二月 2020 16:18:07 +0800 Subject: [PATCH] 2020-12-17 1.增加错误码 --- HDL_ON/DAL/Mqtt/MqttClient.cs | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/HDL_ON/DAL/Mqtt/MqttClient.cs b/HDL_ON/DAL/Mqtt/MqttClient.cs index 77f4d6b..1e1e716 100644 --- a/HDL_ON/DAL/Mqtt/MqttClient.cs +++ b/HDL_ON/DAL/Mqtt/MqttClient.cs @@ -310,11 +310,13 @@ if (RemoteMqttClient.ConnectedHandler == null) { RemoteMqttClient.UseConnectedHandler(async (e) => { - Control.Ins.GatewayOnline = true; + if (DB_ResidenceData.Instance.HomeGateway.GatewayOnline) + { + Control.Ins.GatewayOnline = true; + } IfNeedReadAllDeviceStatus = true; Utlis.WriteLine($"============>Mqtt杩滅▼杩炴帴鎴愬姛"); SendPushSignOut(); - //FunctionList.List.ReadAllFunctionStatus(); }); } #endregion -- Gitblit v1.8.0