From 6cbd0936d3245fd7c433884ac9c1f5448a7cf657 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 13 十二月 2019 13:49:44 +0800
Subject: [PATCH] 合并了代码
---
ZigbeeApp/Shared/Phone/ZigBee/Device/Panel.cs | 52 ++++++++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 48 insertions(+), 4 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/Panel.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/Panel.cs
index 005792d..9e5e423 100755
--- a/ZigbeeApp/Shared/Phone/ZigBee/Device/Panel.cs
+++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/Panel.cs
@@ -16,7 +16,7 @@
/// <summary>
/// 鎸夐敭妯″紡锛堢鏈夊姛鑳斤級
/// </summary>
- public int panelMode = -1;
+ public int panelMode = 65535;
/// <summary>
///鎸夐敭寮�鐘舵�侊紙鎸囩ず锛変寒搴�
/// </summary>
@@ -31,7 +31,10 @@
/// 褰撳墠閫夋嫨妯″紡
/// </summary>
public string currentKeySelectModeText = "";
-
+ /// <summary>
+ /// 褰撳墠閫夋嫨鐨勬ゼ灞侷D
+ /// </summary>
+ public string currentSelectFloorId = string.Empty;
/// <summary>
/// 褰撳墠寮�鍏虫ā寮�
/// </summary>
@@ -60,6 +63,47 @@
/// 褰撳墠鎴块棿ID
/// </summary>
public string curSelectSceneID = "";
+
+ /// <summary>
+ /// 鏈湴妤煎眰鎴块棿缁戝畾鍒楄〃
+ /// </summary>
+ public Dictionary<int, FloorRoomBindObj> FloorRoomBindObjList = new Dictionary<int, FloorRoomBindObj> { };
+ /// <summary>
+ /// 缁戝畾鐨勬ゼ灞傛埧闂翠俊鎭�
+ /// </summary>
+ [System.Serializable]
+ public class FloorRoomBindObj
+ {
+ /// <summary>
+ /// 妤煎眰ID
+ /// </summary>
+ public string floodID;
+ /// <summary>
+ /// 妤煎眰鍚嶇О
+ /// </summary>
+ public string floodName;
+ /// <summary>
+ /// 鎴块棿ID
+ /// </summary>
+ public string roomID;
+ /// <summary>
+ /// 鎴块棿鍚嶇О
+ /// </summary>
+ public string roomName;
+ /// <summary>
+ /// 缁戝畾鐩爣ID
+ /// </summary>
+ public string BindID;
+ /// <summary>
+ /// 缁戝畾鐩爣鍚嶇О
+ /// </summary>
+ public string BindName;
+ /// <summary>
+ /// 鍥剧墖璺緞
+ /// </summary>
+ public string IconPath = "";
+
+ }
// <summary>
/// 鎸夐敭涓缁戝畾鐨勭洰鏍囧垪琛�
@@ -2483,7 +2527,7 @@
///閰嶇疆闈㈡澘鍔熻兘
///<para>value:缁欓潰鏉块厤缃殑妯″紡</para>
/// </summary>
- public async System.Threading.Tasks.Task<SetWritableValueResponAllData> ConfigureHdlKeyValueAsync(KeyMode value)
+ public async System.Threading.Tasks.Task<SetWritableValueResponAllData> ConfigureHdlKeyValueAsync(KeyMode value, int clusterID = 6)
{
if (Gateway == null)
{
@@ -2532,7 +2576,7 @@
System.Console.WriteLine("SetWritableValue_Actions 鍚姩" + "_" + System.DateTime.Now.ToString());
try
{
- var jObject = new JObject { { "DeviceAddr", DeviceAddr }, { "Epoint", DeviceEpoint }, { "Cluster_ID", 6 }, { "Command", 120 } };
+ var jObject = new JObject { { "DeviceAddr", DeviceAddr }, { "Epoint", DeviceEpoint }, { "Cluster_ID", clusterID }, { "Command", 120 } };
var data = new JObject { { "Undivided", 0 }, { "AttributeId", 6533 }, { "AttributeDataType", 33 }, { "AttributeData", (int)value } };
jObject.Add("Data", data);
Gateway.Send("SetWritableValue", jObject.ToString());
--
Gitblit v1.8.0