From b71dfb3ca100340005d56e1298292807da82322d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 08 六月 2020 15:04:21 +0800
Subject: [PATCH] 20200608

---
 HDL_ON/Common/A_Protocol_Command.cs | 1192 -----------------------------------------------------------
 1 files changed, 1 insertions(+), 1,191 deletions(-)

diff --git a/HDL_ON/Common/A_Protocol_Command.cs b/HDL_ON/Common/A_Protocol_Command.cs
index 5932ea4..5f28270 100644
--- a/HDL_ON/Common/A_Protocol_Command.cs
+++ b/HDL_ON/Common/A_Protocol_Command.cs
@@ -1,1191 +1 @@
-锘縰sing System;
-using Newtonsoft.Json.Linq;
-
-namespace HDL_ON.Entity
-{
-	public class A_Protocol_Command
-	{
-		string vendor_code = "HDL";
-		public A_Protocol_Command()
-		{
-		}
-
-
-	    /*
-         *5.1.1 
-         *璇锋眰鍙傛暟
-		 *{
-		 *  "vendor_code":"HDL",
-		 *  "command":"search"
-		 *}
-		 *杩斿洖鍊� json鏍煎紡锛涚綉鍏宠澶囦俊鎭�
-		 *渚嬪瓙
-		 *{
-		 *	"vendor_code": "HDL",
-		 *	"command": "get_gateway_info_respond",
-		 *	"objects":
-         *	{
-		 *		"name": "hdl_bus_gateway",
-		 *		"version": "20191220",
-		 *		"gateway_ipmac": "1200450600",
-		 *		"gateway_ip": "192.168.10.2",
-		 *		"mask": "255.255.255.0",
-		 *		"dns_server1": "114.114.114.114",
-		 *      "dns_server2": "114.114.114.114",
-		 *		"server_addr": "t1-smarthome.ec-founder.com",
-		 *		"mqtt": "true"
-		 *	}
-		 *}
-        */
-		/// <summary>
-		/// 鎼滅储鍦ㄧ嚎缃戝叧
-		/// </summary>
-		public void SearchGateway()
-		{
-		}
-
-
-		/// <summary>
-		///5.1.2   淇敼鍦ㄧ嚎缃戝叧鍩烘湰淇℃伅
-		///璇锋眰鍙傛暟
-		///		{
-		///	"vendor_code": "HDL",
-		///	"command": "modify_gateway_info",
-		///	"objects": {
-		///				"name": "hdl_bus_gateway",
-		///		    "version": "20191220",
-		///		    "gateway_ip": "192.168.10.2",
-		///		    "mask": "255.255.255.0",
-		///		    "dns_server1": "114.114.114.114",
-		///          "dns_server2": "114.114.114.114",
-		///		    "server_addr": "t1-smarthome.ec-founder.com",
-		///		     "mqtt":" true"
-		///	}
-		///		}
-		///		杩斿洖鍊� json鏍煎紡
-		///渚嬪瓙	{
-		///	"vendor_code": "HDL",
-		///	"command": 鈥渕odity_gateway_info_respond ",
-		///	"value": "success"
-		///}
-		/// </summary>
-		public void EidtGatewayInfo(string name, string version, string gateway_ip, string mask, string dns_server1, string dns_server2, string server_addr, bool mqtt)
-		{
-			var sendJob = new JObject { { "vendor_code", vendor_code }, { "Command", "modify_gateway_info" } };
-			var data = new JObject { { "name", name },{"version", version},{ "gateway_ip",gateway_ip},{ "mask",mask}, { "dns_server1",dns_server1 }
-		                        	,{ "dns_server2",dns_server2},{ "server_addr",server_addr},{ "mqtt",mqtt}};
-			sendJob.Add("objects", data);
-		}
-
-
-
-		/// <summary>
-		/// 5.1.3鑾峰彇璁惧oid鍒楄〃
-		/// 璇锋眰鍙傛暟
-		/// 	{
-		/// 	"vendor_code": "HDL",
-		/// 	"type": "device_oid",
-		/// 	"command": "get_list"
-		/// }
-		/// 	杩斿洖鍊� json鏍煎紡锛沷id 鍒楄〃鏁版嵁
-		/// 渚嬪瓙	{
-		/// 	"vendor_code": "HDL",
-		/// 	"command": "get_list_respond",
-		/// 	"type": "device_oid",
-		/// 	"objects": [{
-		/// 		"oid": "0001011910120900002567010001",
-		/// 		"status": "online",
-		///         "auto_id": "0001",
-		/// 		"name": "light",
-		/// 		"machine_id": "1234567890-abcdefaabd-1234567890",
-		///         "net_id":"02",
-		///         "dev_id":"00"
-		/// 	}, {
-		/// 		"oid": "0001011910120900002567020002",
-		/// 		"status": "online",
-		///         "auto_id": "0002",
-		/// 		"name": "curtain",
-		/// 		"machine_id": "1234567890-abcdefaabd-1234567890",
-		///         "net_id":"02",
-		///         "dev_id":"01"
-		/// 	}]
-		/// }
-		/// </summary>
-		public void GetDevcieOidList()
-        {
-			var sendJob = new JObject { { "vendor_code", vendor_code },{"type","device_oid" }, { "Command", "get_list" } };
-		}
-
-		//5.1.4 娣诲姞oid鍒拌澶噊id鍒楄〃
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"type": "device_oid",
-		//	"command": "add",
-		//	"objects": [{
-		//		"oid": "0001011910120900002567010001",
-		//		"name": "light",
-		//"auto_id": "0001",
-		//		"machine_id": "1234567890-abcdefaabd-1234567890",
-		//"net_id":"02",
-		//"dev_id":"00"
-		//	}, {
-		//		"oid": "0001011910120900002567020002",
-		//		"name": "light",
-		//"auto_id": "0002",
-		//		"machine_id": "1234567890-abcdefaabd-1234567890",
-		//"net_id":"02",
-		//"dev_id":"00"
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡锛�
-		//渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "add_respond",
-		//	"type": "device_oid",
-		//	"oid": "0001011910120900002567010001",
-		//	"value": "success"
-		//}
-
-		//5.1.5 鍒犻櫎璁惧oid鍒楄〃涓殑oid
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"type": "device_oid",
-		//	"command": "delete",
-		//	"objects": [{
-		//		"oid": "0001011910120900002567010001"
-		//	}, {
-		//		"oid": "0001011910120900002567010002"
-		//	}]
-
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "delete_respond",
-		//	"type": "device_oid",
-		//	"oid": "0001011910120900002567010001",
-		//	"value": "success"
-		//}
-		//5.1.6 鑾峰彇鍔熻兘锛堢墿妯″瀷锛夊垪琛�
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"type": "device_sid",
-		//	"command": "get_list"
-		//}
-		//杩斿洖鍊� json鏍煎紡锛泂id鍜宯ame
-		//渚嬪瓙
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "get_list_respond",
-		//	"type": "device_sid",
-		//	"objects": [{
-		//		"sid": "00010119101209000025670300010001",
-		//"device_type": "light",
-		//"name": "瀹㈠巺鐏厜1"
-		//	}, {
-		//		"sid": "00010019101209000025670100010003",
-		//"device_type": "airconditioner",
-		//"name": "瀹㈠巺绌鸿皟1"
-		//		}]
-		//}
-
-
-
-
-		//璇存槑 鑾峰彇鍔熻兘锛堢墿妯″瀷锛塻id鍒楄〃
-
-		//5.1.7  鑾峰彇鍔熻兘锛堢墿妯″瀷锛夊睘鎬у�煎垪琛�
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "get_proxy",
-		//	"type": "device_sid",
-		//	"objects": [{
-		//		    "sid": "00010119101209000025670100010001"
-		//	}, {
-		//		"sid": "00010019101209000025670300020001"
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡锛泂id鍜屽睘鎬у垪琛�
-		//渚嬪瓙
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "get_proxy_respond ",
-		//	"type": "device_sid",
-		//	"objects": [{
-		//			"sid": "00010119101209000025670300020001",
-		//"name": "",
-		//			"function": [{
-		//					"attri": "switch",
-		//					"value": ["on ", "off "],
-		//					"max": 1,
-		//					"min": 0
-		//				}, {
-		//					"attri": "mode",
-		//					"value": ["auto", "heat", "cool"],
-		//					"max": 2,
-		//					"min": 0
-		//				}, {
-		//					"attri": "fan",
-		//					"value": ["low", "mid", "high"],
-		//					"max": 2,
-		//					"min": 0
-		//				},
-		//				{
-		//					"attri": "temperature",
-		//					"value": ["up", "down"],
-		//					"max": 32,
-		//					"min": 16
-		//				}
-		//			]
-		//		},
-		//		{
-		//			"sid": "00010019101209000025670400010001",
-		//"name": "寮�鍚堝笜",
-		//			"function": [{
-		//				"attri": "switch",
-		//				"value": ["on ", "off "],
-		//					"max": 1,
-		//					"min": 0
-		//			},{
-		//				"attri": "openLevel",
-		//				"value": ["percent"],
-		//					"max": 100,
-		//					"min": 0
-		//			}]
-		//		}
-		//	]
-		//}
-		//璇存槑 灞炴�у瓧娈佃В鏋愶細attri :灞炴�у唴瀹癸紝value 灞炴�х殑鍊硷紝max 鏈�澶у�� min 鏈�灏忓��
-
-
-
-		//鍏蜂綋璁惧鍔熻兘灞炴�у垪琛ㄥ涓嬶細
-		//鐏厜绫伙細trait: [switch, brightness, color, cct, delay, fadeTime]
-		//灞炴�� 鎻忚堪
-		//switch	on/off;
-		//brightness	0-100;
-		//color int (red (0-255) green(0-255) blue(0-255))
-		//cct int (warm light(0-255) cold light(0-255) )
-		//delay	0-3600s
-		//fadetime    0-3600s
-
-		//绐楀笜灞炴�у垪琛細trait: [switch, openLevel]
-		//灞炴�� 鎻忚堪
-		//switch	on/off/stop;
-		//openLevel	0-100;
-		//lock	boolean(Lock閿佸畾鎺у埗)
-
-		//绌鸿皟锛歵rait: [switch, mode, fan, temperature, swing, lock]
-		//灞炴�� 鎻忚堪
-		//switch	on/off
-		//mode    mode: auto, cool, heat, dry, fan
-		//fan high, medium, low, auto
-		//temperature up,down,value
-		//swing   up/down/left/right
-		//lock	boolean(Lock閿佸畾鎺у埗)
-
-		//鍦扮儹锛歵rait: [switch, mode, temperature, lock]
-		//灞炴�� 鎻忚堪
-		//switch	on/off
-		//mode    day, night,away, vacation, timer
-		//temperature up,down,value
-		//lock	boolean(Lock閿佸畾鎺у埗)
-
-		//鏂伴锛歵rait: trait: [switch, mode, fan, lock]
-		//灞炴�� 鎻忚堪
-		//switch	on/off
-		//mode    auto, manual, timer
-		//fan high, ,medium, low, auto
-		//lock	boolean(Lock閿佸畾鎺у埗)
-		//5.1.8 璁惧sid鎺у埗鍛戒护
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "write",
-		//	"type": "device_sid",
-		//	"objects": [{
-		//		"sid": "00010019101209000025670100010001",
-		//		"function": [{
-		//			"attri": "switch",
-		//			"data_type": "string ",
-		//			"value": "on"
-		//		}, {
-		//			"attri": "brightness ",
-		//"data_type": "int",
-		//			"value": 100
-		//		}]
-		//	}]
-		//}}
-		//杩斿洖鍊� json鏍煎紡锛泂id鍜屾帶鍒剁粨鏋滆緭鍑�
-		//渚嬪瓙
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "write_respond",
-		//	"type": "device_sid",
-		//	"sid": "00010019101209000025670100010001",
-		//	"value": "success"
-		//}
-		//璇存槑 鐢ㄦ埛鎺у埗鐩稿簲璁惧, 鎺у埗鎴愬姛鍚庝細鏈夊彟澶栨帴鍙e啀娆℃洿鏂版渶缁堢姸鎬�
-
-		//5.1.9璇诲彇璁惧sid鐘舵��
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "read",
-		//	"type": "device_sid",
-		//	"objects": [{
-		//		"trait": ["switch", "brightness"],
-		//		"sid": "00010019101209000025670100010001"
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡锛泂id鍜岀姸鎬佽繑鍥�
-		//渚嬪瓙
-		//{
-		//	"vendor_code": "HDL",
-		//	"type": "device_sid",
-		//	"command": "read_respond",
-		//	"objects": [{
-		//		"sid": "00010019101209000025670100010001",
-		//		"function": [{
-		//			"attri": "switch",
-		//"data_type": "string ",
-		//			"value": "on"
-		//		}, {
-		//			"attri": "brightness",
-		//"data_type": "int",
-		//			"value": 100
-		//		}]
-		//	}]
-		//}
-		//璇存槑 鐢ㄦ埛鑾峰彇璁惧鐘舵��
-
-		//5.1.10 璁惧sid涓婃姤鐘舵�佸彉鍖栦富鍔ㄥ箍鎾暟鎹�
-		//鍙戦�佸弬鏁�
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "update",
-		//	"type": "device_sid",
-		//	"objects": [{
-		//		"sid": "00010019101209000025670100010001",
-		//		"function": [{
-		//			"attri": "switch",
-		//"data_type": "string ",
-		//			"value": "on"
-		//		}]
-		//	}, {
-		//		"sid": "00010019101209000025670100010002",
-		//		"function": [{
-		//			"attri": "switch",
-		//"data_type": "string ",
-		//			"value": "on"
-		//		}, {
-		//			"attri": "brightness",
-		//"data_type": "int",
-		//			"value": 100
-		//		}]
-		//	}]
-		//}
-		//杩斿洖鍊� 鏃犺繑鍥�
-		//璇存槑 椹卞姩涓诲姩鏇存柊璁惧鐘舵��
-
-		//5.1.11 鍒犻櫎璁惧sid
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "delete",
-		//	"type": "device_sid",
-		//	"objects": [{
-		//		"sid": "00010019101209000025670100010001"
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡锛泂id鍜岀粨鏋滆緭鍑�
-		//杩斿洖渚嬪瓙
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "delete_respond",
-		//	"type": "device_sid",
-		//	"sid": "00010019101209000025670100010001",
-		//	"value": "success "
-		//}
-		//璇存槑 鐢ㄦ埛鑾峰彇璁惧鐘舵��
-
-		//5.1.12娣诲姞璁惧 sid 鍙婂睘鎬�
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "add",
-		//	"type": "device_sid",
-		//	"objects": [{
-		//		"sid": "00010019101209000025670100050001",
-		//		"device_type": "light",
-		//	   "name": "dinning light",
-		//			"function": [{
-		//				"attri": "switch",
-		//				"value": ["on ", "off "],
-		//				"max": 1,
-		//				"min": 0
-		//			}]
-		//			}]
-		//}
-		//杩斿洖鍊� json鏍煎紡锛泂id鍜岀粨鏋滆緭鍑�
-		//杩斿洖渚嬪瓙
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "add_respond",
-		//	"type": "device_sid",
-		//	"sid": "00010019101209000025670100010001",
-		//	"value": "success "
-		//}
-
-
-
-
-
-
-
-
-
-		//5.1.13璁惧涓婄嚎绂荤嚎閫氱煡
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "device_line",
-		//	"type": "device_sid",
-		//	"objects": [{
-		//			"sid": "00010019101209000025670100010001",
-		//			"value": "online "
-		//		},
-		//		{
-		//			"sid": "00010019101209000025670100010002",
-		//			"value": "offline"
-		//		}
-		//	]
-		//}
-		//杩斿洖鍊� 鏃犺繑鍥�
-		//璇存槑 椹卞姩涓诲姩鏇存柊璁惧鐘舵��
-
-		//5.1.14鑾峰彇鍦烘櫙鍒楄〃
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"type": "scene",
-		//	"command": "get_list"
-		//}
-		//杩斿洖鍊� json鏍煎紡 鎵�鏈夊満鏅痠d鍙婂満鏅噷鎵ц鐨勭洰鏍囨暟鎹�
-		//杩斿洖渚嬪瓙
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "get_list_respond",
-		//	"type": "scene",
-		//	"number": [{
-		//		"scene_id": "0001",
-		//		"scene_name": "dinner",
-		//		"objects": [{
-		//			   "sid": "00010019101209000025670100010001",
-		//"data_type": "string ",
-		//			"value": "on"
-		//		  }]
-		//	}]
-		//}
-		//璇存槑 鑾峰彇鍦烘櫙鍒楄〃鍜屽睘鎬э紝鍙紑锛屽彧鍏筹紝鏃㈠紑鍙堝叧
-
-		//5.1.15鍒涘缓鍦烘櫙
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "create",
-		//	"type": "scene",
-		//	"objects": [{
-		//		"name": "Away ",
-		//		"status": "single_off"
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "create_respond",
-		//	"type": "scene",
-		//	"objects": [{
-		//		"scene_id": "0004",
-		//		"name": "Away",
-		//		"status": "single_off",
-		//        鈥樷��
-		//	}]
-		//}
-		//璇存槑 鍒涘缓鍦烘櫙
-
-		//5.1.16娣诲姞鐩爣鍒板満鏅�
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "add_member",
-		//	"type": "scene",
-		//	"number": [{
-		//		"scene_id": "0001",
-		//		"objects": [{
-		//			"sid": "00010019101209000025670100010001",
-		//			"function": [{
-		//				"attri": "switch",
-		//"data_type": "string ",
-		//				"value": "on"
-		//			}]
-
-		//		}]
-		//	}, {
-		//		"scene_id": "0002",
-		//		"objects": [{
-		//			"sid": "00010019101209000025670200010001",
-		//			"function": [{
-		//				"attri": "brightness",
-		//"data_type": "int",
-		//				"value": 50
-		//			}]
-
-		//		}]
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "add_member_respond",
-		//	"type": "scene",
-		//	"scene_id": "0001",
-		//	"value": "success"
-
-		//}
-
-
-
-
-		//璇存槑 鎴愬姛娣诲姞鐩爣鐨勫満鏅垪琛�
-
-		//5.1.17鍒犻櫎鍦烘櫙鍛戒护
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "delete",
-		//	"type": "scene",
-		//	"objects": [{
-		//		"scene_id": "0001"
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "delete_respond",
-		//	"type": "scene",
-		//	"scene_id": "0001",
-		//	"value": "success"
-
-		//}
-
-
-
-
-		//璇存槑 鍒犻櫎鍦烘櫙
-
-		//5.1.18鍒犻櫎鍦烘櫙閲岀殑鐩爣
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"Command": "delete_member",
-		//	"type": "scene",
-		//	"number": [{
-		//		"scene_id": "0001",
-		//		"objects": [{
-		//			"sid": "00010019101209000025670100010001"
-		//		}, {
-		//			"sid": "00010019101209000025670100010002"
-		//		}]
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "delete_member_respond",
-		//	"type": "scene",
-		//	"scenesid": "0001",
-		//	"sid": "00010019101209000025670100010001",
-		//	"value": "success"
-		//}
-
-
-
-
-		//璇存槑 鍒犻櫎鍦烘櫙鍐呰澶�
-
-		//5.1.19閰嶇疆鍦烘櫙鍒嗙粍锛堣冻鍐呭満鏅姸鎬佽嚜鍔ㄨ褰曟渶鍚庝竴娆¤褰曪級
-		//璇锋眰鍙傛暟	{
-		//	"vendor_code": "HDL",
-		//	"command": "group",
-		//	"type": "scene",
-		//	"objects": [{
-		//		"group_id": 1,
-		//		"scene_ids": [{
-		//			"scene_id": "0001"
-		//		}, {
-		//			"scene_id": "0002"
-		//		}]
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "group_respond",
-		//	"type": "scene",
-		//	"group_id": "0001",
-		//	"value": "success"
-		//}
-
-
-
-
-		//璇存槑 鎺у埗鍦烘櫙
-
-
-		//5.1.20璇诲彇鍦烘櫙鍒嗙粍
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "read_group",
-		//	"type": "scene",
-		//	"objects": [{
-		//		"group_id": 1
-
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "read_group_respond",
-		//	"type": "scene",
-		//	"objects": [{
-		//		"group_id": 1,
-		//		"scene_ids": [{
-		//			"scene_id": "0001"
-		//		}, {
-		//			"scene_id": "0002"
-		//		}]
-		//	}]
-		//}
-
-
-
-
-		//璇存槑 鎺у埗鍦烘櫙
-
-
-		//5.1.21鎺у埗鍦烘櫙
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "contrl",
-		//	"type": "scene",
-		//	"objects": [{
-		//		"scene_id": "0001",
-		//		"value": 鈥渙n鈥�
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "contrl_respond",
-		//	"type": "scene",
-		//		"scene_id": "0001",
-		//		"value": "success"
-		//}
-
-
-
-
-		//璇存槑 鎺у埗鍦烘櫙
-
-
-
-		//5.1.22鑷姩鍖�
-		//杈撳叆鏉′欢    鏁板��
-		//鏃堕棿鐐规潯浠讹紝鍦ㄦ煇涓椂闂村彂鐢�	1
-		//璁惧鐘舵�佸彉鍖栨潯浠�	2
-		//鏃堕棿娈垫潯浠�	3
-		//瀹夐槻鏉′欢	4
-		//鐢ㄦ埛浣嶇疆鏉′欢	5
-		//浜戠澶╂皵鏉′欢	6
-		//鏌愪釜閫昏緫鐨勮緭鍑烘潯浠�	7
-		//鍦扮悊鍥存爮	8
-
-		//5.1.23鑾峰彇鑷姩鍖栧垪琛�
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "get_list",
-		//	"type": "logic"
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "get_list_respond",
-		//	"type": "logic",
-		//	"objects": [{
-		//		"logic_id": "0001",
-		//		"logic_relation": "and",
-		//		"input": [{
-		//				"sid": "00010019101209000025670400010002",
-		//				"condtion_type": 2,
-		//				"function": [{
-		//					"attri": "brightness",
-		//					"data_type": "int",
-		//					"value": 50
-		//				}]
-		//			},
-		//			{
-		//				"sid": "00010019101209000025670B00020001",
-		//				"condtion_type": 2,
-		//				"function": [{
-		//					"attri": "temperature",
-		//					"data_type": "int",
-		//					"value": 23
-		//				}]
-		//			}
-		//		],
-		//		"output": [{
-		//			"sid": "00010019101209000025670400010003",
-		//			"function": [{
-		//				"attri": "brightness",
-		//				"data_type": "int",
-		//				"value": 50
-		//			}]
-		//		}]
-		//	}]
-		//}
-
-
-
-
-		//璇存槑 鑾峰彇鑷姩鍖栧垪琛�
-
-		//5.1.24澧炲姞閫昏緫
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "add",
-		//	"type": "logic"
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//"vendor_code": "HDL",
-		//	"command": "add_respond",
-		//"type鈥�:鈥漧ogic鈥�,
-		//"logic_id": "0001",
-		//}
-
-
-
-
-		//璇存槑 澧炲姞閫昏緫
-
-		//5.1.25 娣诲姞鐩爣鍒伴�昏緫
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "add_member",
-		//	"type": "logic",
-		//	"objects": [{
-		//		"logic_id": "0001",
-		//		"logic_relation": "and",
-		//		"input": [{
-		//				"sid": "00010019101209000025670400010002",
-		//				"condtion_type": 2,
-		//				"function": [{
-		//					"attri": "brightness",
-		//					"data_type": "int",
-		//					"value": 50
-		//				}]
-		//			},
-		//			{
-		//				"sid": "00010019101209000025670B00020001",
-		//				"condtion_type": 2,
-		//				"function": [{
-		//					"attri": "temperature",
-		//					"data_type": "int",
-		//					"value": 23
-		//				}]
-		//			}
-		//		],
-		//		"output": [{
-		//			"sid": "00010019101209000025670400010003",
-		//			"function": [{
-		//				"attri": "brightness",
-		//				"data_type": "int",
-		//				"value": 50
-		//			}]
-		//		}]
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"type": "logic",
-		//	"command": "add_member_respond",
-		//	"logic_id": "0001",
-		//	"value": "success"
-		//}
-
-
-
-
-		//璇存槑 澧炲姞璁惧鍒伴�昏緫
-
-		//5.1.26鍒犻櫎閫昏緫琛ㄩ噷鐨勬潯浠�
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "delete_member",
-		//	"type": "logic",
-		//	"objects": [{
-		//		"logic_id": "0001",
-		//		"input": [{
-		//			"sid": "00010019101209000025670400010002"
-		//		}],
-		//		"output": [{
-		//				"sid": "00010019101209000025670400010003"
-		//			},
-		//			{
-		//				"sid": "00010019101209000025670100020001"
-		//			}
-		//		]
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "delete_member_respond",
-		//	"type": "logic",
-		//	"logic_id": "0001",
-		//	"value": "success"
-		//}
-
-
-
-
-		//璇存槑 鍒犻櫎閫昏緫琛ㄩ噷鐨勬潯浠�
-
-		//5.1.27鍒犻櫎閫昏緫
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "delete",
-		//	"type": "logic",
-		//	"objects": [{
-		//		"logic_id": "0001"
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "delete_respond",
-		//	"type": "logic",
-		//	"logic_id": "0001",
-		//	"value": "success"
-
-		//}
-
-
-
-
-		//璇存槑 鍒犻櫎閫昏緫
-
-		//5.1.28璇诲彇閫昏緫鐘舵�侊細
-		//璇锋眰鍙傛暟	{
-		//	"vendor_code": "HDL",
-		//	"command": "read",
-		//	"type": "logic",
-		//	"loigic_id": "0001"
-		//}
-		//杩斿洖鍊� json鏍煎紡, 鐘舵�乿alue鍖呮嫭start锛宻top锛宲ause
-		//杩斿洖渚嬪瓙
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "enable_respond",
-		//	"logic_id": "0001",
-		//	"value": "start"
-		//}
-
-
-
-
-
-		//5.1.29浣胯兘閫昏緫鍛戒护锛�
-		//璇锋眰鍙傛暟	{
-		//	"vendor_code": "HDL",
-		//	"command": "enable",
-		//	"objects": [{
-		//		"logic_id": "0001",
-		//		"value": "start"
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡 value鍖呮嫭start锛宻top锛宲ause
-		//杩斿洖渚嬪瓙
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "enable_respond",
-		//"logic_id": "0001",
-		//"status" : "success"
-		//}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-		//5.1.30瀹夐槻
-		//妯″紡  鏁板��
-		//鍦ㄥ甯冮槻    1
-		//绂诲甯冮槻	2
-
-		//瀹夐槻鍖哄煙 鏁板��
-		//24灏忔椂闃插尯	1
-		//24灏忔椂闈欓煶闃插尯	2
-		//鍑哄叆闃插尯	3
-		//鍐呴儴闃插尯	4
-		//鍛ㄧ晫闃插尯	5
-		//5.1.31鑾峰彇瀹夐槻鍒楄〃
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "get_list",
-		//"type鈥�:鈥漵ecurity鈥�
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "get_list_respond",
-		//	"objects": [{
-		//		 "security_id": 1,   //闃插尯绫诲瀷
-		//"delay_time鈥濓細10 s
-		//        "input鈥�:[
-		//{
-		//"sid鈥�:鈥�00010019101209000025670400010002鈥�,             
-		//                 "function": [{
-		//				"attri": "contact",
-		//"data_type": "int",
-		//				"value": 1
-		//			}]
-
-		//},
-		//{"sid鈥�:鈥�00010019101209000025670B00020001鈥�, 
-		//"function": [{
-		//				"attri": "temperature",
-		//"data_type": "int",
-		//				"value": 24
-		//			     }]
-		//}],
-		//"output鈥�:[
-		//{"sid鈥�:鈥�00010019101209000025670400010003鈥�,
-		//"function": [{
-		//				"attri": "brightness",
-		//"data_type": "int",
-		//				"value": 100
-		//			     }]
-		//}
-		//]
-		//}]
-		//}
-
-
-
-
-		//璇存槑 鑾峰彇瀹夐槻鍒楄〃
-
-		//5.1.32澧炲姞瀹夐槻鍛戒护
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "create",
-		//"type鈥�:鈥漵ecurity鈥�,
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "create_respond",
-		//"type鈥�:鈥漵ecurity鈥�,
-		//     "security_id":1,
-		//	 "value鈥� : "success鈥�
-		//}
-
-
-
-
-		//璇存槑 鍒犻櫎閫昏緫
-
-		//5.1.33娣诲姞鐩爣鍒板畨闃插尯鍩�
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "add_member",
-		//"type":"security",
-		//	"objects": [{
-		//		      "securityId": 1,
-		//"runTime"锛�10 s
-		//              "input":[
-		//{"sid":"00010019101209000025670400010002",
-		//              "function": [{
-		//"attri":"contact",
-		//"value":"on"
-		//}]},
-		//{"sid":"00010019101209000025670B00020001",
-		// "function": [{
-		//"attri":"humity",
-		//"value":200
-		//}]}]
-		//"output":[
-		//{"sid":"00010019101209000025670400010003",
-		//             "function": [{
-		//"attri":"switch",
-		//"value": "on"
-		//}]
-		//}]
-		//}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "add_member_respond",
-		//"type":"security",
-		//      "security_id":1,
-		//	 "value" : "success"
-
-		//}
-
-
-
-
-		//璇存槑 娣诲姞鐩爣鍒板畨闃�
-
-		//5.1.34鍒犻櫎瀹夐槻鍖哄煙
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "delete",
-		//"type":"security",
-		//	"objects": [{
-		//              "security_id": 1,
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "delete_respond",
-		//"Type":"security",
-		//    "security_id": 1",
-		//	"value" : "success"
-		//}
-
-
-
-
-
-		//5.1.35鍒犻櫎瀹夐槻鍖哄煙鐩爣
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//	"command": "delete_member",
-		//"type鈥�:鈥漵ecurity鈥�,
-		//	"objects": [{
-		//	"security_id":1,                                                         "input鈥�:[
-		//{"sid鈥�:鈥�00010019101209000025670400010002鈥�,
-		//},
-		//{"sid鈥�:鈥�00010019101209000025670B00020001鈥�,
-		//}]
-		//"output鈥�:[
-		//{"sid鈥�:鈥�00010019101209000025670400010003鈥�,
-		//}
-		//]
-		//}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "delete_member_respond",
-		//"type鈥�:鈥漵ecurity鈥�,
-		//     "security_id": 1,
-		//  	"value鈥� : "success鈥�
-		//}
-
-
-
-
-		//璇存槑 鍒犻櫎瀹夐槻鍐呯浉鍏虫潯浠舵垨鑰呰緭鍑�
-
-
-		//5.1.36瀹夐槻鎺у埗
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		// "type鈥�:鈥漵ecurity鈥�,
-		//	"command": "write鈥�,
-		//	"objects": [{
-		//              "security_id":3,
-		//"mode鈥濓細1
-		//	}]
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//	"vendor_code": "HDL",
-		//	"command": "write_respond",
-		//"type鈥�:鈥漵ecurity鈥�,
-		//"objects": [{
-		//                     "security_id":3,
-		//	                "value鈥� : "success鈥�
-		//	}]
-		//}
-
-
-
-
-
-
-
-		//5.1.37閫忎紶鏁版嵁鏍煎紡
-		//璇锋眰鍙傛暟
-		//{
-		//	"vendor_code": "HDL",
-		//   "type": "gate_way",
-		//	"command": "through",
-		//     鈥渇rame鈥�:鈥滳0 A8 01 31 48 44 4C 4D 49 52 41 43 4C 45 AA AA 0C 02 06 02 D6 E3 E7 01 5A 01 2E 18鈥�
-		//}
-		//杩斿洖鍊� json鏍煎紡
-		//杩斿洖渚嬪瓙	{
-		//"vendor_code": "HDL",
-		//"type": "gate_way",
-		//	"command": "through_respond",
-		//"value": "sucess",
-
-		//}
-
-
-
-
-		//璇存槑 浜戠閫忎紶鏁版嵁缁欑綉鍏�
-		//5.1.38缃戝叧閫忎紶鏁版嵁缁欎簯绔�
-		//鍙嶉鏁版嵁
-		//{
-		//	"vendor_code": "HDL",
-		//"type": "gate_way",
-		//	"command": "through",
-		//    鈥渇rame鈥�:鈥滳0 A8 01 31 48 44 4C 4D 49 52 41 43 4C 45 AA AA 0C 02 06 02 D6 E3 E7 01 5A 01 2E 18鈥�
-		//}
-		//璇存槑 鏁版嵁閫忎紶锛岀綉鍏虫湰韬笉鍋氬鐞�
-	}
-}
+锘�
\ No newline at end of file

--
Gitblit v1.8.0