From b69d7735274b8d0f741da8a6bb8b8e1347477a5a Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期四, 19 三月 2020 17:14:16 +0800 Subject: [PATCH] 20200319 --- HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs | 28 +++++++++++++++++++++++----- 1 files changed, 23 insertions(+), 5 deletions(-) diff --git a/HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs b/HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs index cd764aa..9d4ac6b 100644 --- a/HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs +++ b/HDL_ON/Entity/Function/A_Protocol_FunctionInfo.cs @@ -1,4 +1,6 @@ 锘縰sing System; +using System.Collections.Generic; + namespace HDL_ON.Entity { public class A_Protocol_FunctionInfo @@ -8,15 +10,26 @@ HDL缁熶竴鍗忚鏍煎紡锛�16bytes 鍘傚晢浠e彿锛�2bytes 閫氳鏂瑰紡锛氭湁绾�/鏃犵嚎/ZIGBEE绛�1bytes - 浜у搧璇嗗埆鐮侊細浠ユ坊鍔犺澶囩殑骞存湀鏃ユ椂鍒嗙 + 闅忔満鏁�8bytes Category + 浜у搧璇嗗埆鐮侊細浠ユ坊鍔犺澶囩殑骞存湀鏃ユ椂鍒嗙 + 闅忔満鏁� 8bytes Category 鍔熻兘绫诲埆锛�1bytes 鏁版嵁琛ㄧ储寮曞湴鍧�锛�2bytes 鍥炶矾锛�2bytes - 涓句緥锛� 0001-00-201910120900002567-01-0001-0001 + 涓句緥锛� 0001-00-2019101209001234-01-0001-0001 */ + public A_Protocol_FunctionInfo() + { + dicPropert = new Dictionary<string, string>(); + if (!string.IsNullOrEmpty(trait)) + { + foreach (string t in trait.Split(",", StringSplitOptions.None)) + { + dicPropert.TryAdd(t, ""); + } + } + } /// <summary> - /// 褰撳墠鍔熻兘鍒嗙被琛� + /// 鍔熻兘绫诲埆 /// 濡傦細绌鸿皟绫汇�佺伅鍏夌被銆佺獥甯樼被 /// </summary> public FunctionType functionCategory @@ -30,7 +43,7 @@ /// <summary> /// 鍔熻兘ID /// </summary> - public string sid = "1234121234567890123456FF00010001"; + public string sid = "00010020200309FF0001000100000000"; /// <summary> /// 澶囨敞 /// </summary> @@ -43,8 +56,13 @@ /// A鍗忚鍔熻兘鐨勯�氳 /// 濡傦細鏄疉C鍔熻兘锛氱壒鎬у寘鍚細Switch/mode/fan/temperature /// </summary> - public string trait = ""; + public string trait=""; + //string _trait; + /// <summary> + /// 鍔熻兘闄勫甫鐨勫睘鎬т笌鍊肩殑鍒楄〃 + /// </summary> + public Dictionary<string, string> dicPropert; } } -- Gitblit v1.8.0