| | |
| | | //本地搜索不到网关 |
| | | if (!Ins.IsRemote) |
| | | { |
| | | //连接mqtt前,先断开--2020-12-21 |
| | | DAL.Mqtt.MqttClient.DisConnectRemote(); |
| | | Ins.IsRemote = true; |
| | | DAL.Mqtt.MqttClient.InitState(); |
| | | } |
| | |
| | | { |
| | | if (Ins.IsRemote || DB_ResidenceData.Instance.GatewayType == 1) |
| | | { |
| | | ControlAProtocolScene(scene); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | ControlAProtocolScene(scene); |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | else |
| | | { |
| | |
| | | /// <returns></returns> |
| | | public void SendWriteCommand(Function function, Dictionary<string, string> commandDictionary) |
| | | { |
| | | function.usageCount++; |
| | | function.controlCounter++; |
| | | function.refreshTime = DateTime.Now; |
| | | |
| | | //如果是控制调光的开时,亮度值不能为0 |