| | |
| | | switch (installedLimit) |
| | | { |
| | | case CurtainPrivateInstalledLimi.UpLimit: |
| | | tempLimit = 1; |
| | | tempLimit = 2; |
| | | break; |
| | | case CurtainPrivateInstalledLimi.DownLimit: |
| | | tempLimit = 2; |
| | | tempLimit = 1; |
| | | break; |
| | | } |
| | | var jObject = new JObject { { "DeviceAddr", DeviceAddr }, { "Epoint", DeviceEpoint }, { "Cluster_ID", 258 }, { "Command", 120 } }; |
| | |
| | | /// <summary> |
| | | /// 窗帘全开所在的位置(上限位) |
| | | /// </summary> |
| | | UpLimit = 1, |
| | | UpLimit = 2, |
| | | /// <summary> |
| | | /// 窗帘全关所在的位置(下限位) |
| | | /// </summary> |
| | | DownLimit = 2, |
| | | DownLimit = 1, |
| | | |
| | | } |
| | | #endregion |
| | |
| | | switch (limiType) |
| | | { |
| | | case LimiType.DownLimit: |
| | | tempLimit = 8; |
| | | tempLimit = 2; |
| | | break; |
| | | case LimiType.UpLimit: |
| | | tempLimit = 2; |
| | | tempLimit = 8; |
| | | break; |
| | | } |
| | | var jObject = new JObject { { "DeviceAddr", DeviceAddr }, { "Epoint", DeviceEpoint }, { "Cluster_ID", 258 }, { "Command", 120 } }; |
| | |
| | | /// <summary> |
| | | /// 删除窗帘上限位 |
| | | /// </summary> |
| | | UpLimit = 0x02, |
| | | UpLimit = 0x08, |
| | | /// <summary> |
| | | /// 删除窗帘下限位 |
| | | /// </summary> |
| | | DownLimit = 0x08, |
| | | DownLimit = 0x02, |
| | | |
| | | }
|
| | | #endregion |