| | |
| | | //本地搜索不到网关 |
| | | if (!Ins.IsRemote) |
| | | { |
| | | //连接mqtt前,先断开--2020-12-21 |
| | | DAL.Mqtt.MqttClient.DisConnectRemote(); |
| | | Ins.IsRemote = true; |
| | | DAL.Mqtt.MqttClient.InitState(); |
| | | } |
| | |
| | | localAttr.curValue = attr.value; |
| | | } |
| | | } |
| | | MainPage.Log($"{localSwitch.trait_on_off.curValue}: "); |
| | | //rgb.lastState = Language.StringByID(StringId.Brightness) + " : " + rgb.brightness + "%"; |
| | | RelayPage.UpdataState(localSwitch); |
| | | } |
| | | break; |
| | |
| | | } |
| | | } |
| | | lightCCT.lastState = Language.StringByID(StringId.Brightness) + " : " + lightCCT.brightness + "%"; |
| | | DimmerPage.UpdataStates(lightCCT); |
| | | ColorTureLampPage.UpdataStates(lightCCT); |
| | | } |
| | | break; |
| | | case SPK.CurtainSwitch: |