| | |
| | | } |
| | | } |
| | | |
| | | ///// <summary> |
| | | ///// 改变通讯方式 |
| | | ///// </summary> |
| | | //public void ChangeCommunicationMode(CommunicationMode communicationMode) |
| | | //{ |
| | | // this.communicationMode = communicationMode; |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// 搜索本地网关列表 |
| | | /// </summary> |
| | |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | function.usageCount++; |
| | | function.refreshTime = DateTime.Now; |
| | | |
| | | //如果是控制调光的开时,亮度值不能为0 |
| | | if (commandDictionary.Count > 2) |
| | | { |
| | | if (commandDictionary.ContainsKey(FunctionAttributeKey.OnOff) && commandDictionary.ContainsKey(FunctionAttributeKey.Brightness)) |
| | | { |
| | | if (commandDictionary[FunctionAttributeKey.OnOff] == "on") |
| | | { |
| | | if (commandDictionary[FunctionAttributeKey.Brightness] == "0") |
| | | { |
| | | commandDictionary[FunctionAttributeKey.Brightness] = "100"; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //远程通讯 |
| | | if (Ins.IsRemote) |
| | | { |