From 6d73bf6e816570291865674bef8bce8972e4de3f Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期三, 01 十二月 2021 16:32:57 +0800
Subject: [PATCH] 2021-12-01-01

---
 HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs |  151 ++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 139 insertions(+), 12 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs b/HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs
index 909bdd8..b4c7484 100644
--- a/HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs
+++ b/HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs
@@ -7,16 +7,6 @@
     {
 
 
-        /// <summary>  
-        /// 鑾峰彇13浣嶆椂闂存埑
-        /// </summary>  
-        /// <param name="time">鏃堕棿</param>  
-        /// <returns>long</returns>  
-        public long Get_time_stamp()
-        {
-            long t = DateTime.Now.Ticks / 10000;  
-            return t;
-        }
 
     }
 
@@ -46,13 +36,32 @@
     /// <summary>
     /// 閫氳涓婚
     /// </summary>
-    public static class CommunicationTopic
+    public class CommunicationTopic
     {
+        static CommunicationTopic _ct;
+        public static CommunicationTopic ct
+        {
+            get
+            {
+                if (_ct == null)
+                {
+                    _ct = new CommunicationTopic();
+                }
+                return _ct;
+            }
+        }
         /// <summary>
         /// 鎼滅储鏈湴缃戝叧
         /// </summary>
         public const string SearchLoaclGateway = "/user/all/custom/gateway/search";
-
+        /// <summary>
+        /// 鎼滅储缃戝叧鍥炲
+        /// </summary>
+        public const string SearchLoaclGatewayReply = "/user/all/custom/gateway/search_reply";
+        /// <summary>
+        /// 缃戝叧骞挎挱鏁版嵁
+        /// </summary>
+        public const string GatewayBroadcast = "/user/all/custom/gateway/broadcast";
         /// <summary>
         /// 璋冭瘯杞欢涓婁紶oid鍒楄〃
         /// </summary>
@@ -69,5 +78,123 @@
         /// 璋冭瘯杞欢鑾峰彇appSid鍒楄〃
         /// </summary>
         public const string BusPcGetAppSids = "/user/onpro/custom/function/list/get";
+
+        /// <summary>
+        /// 鏈湴鎺у埗鍔熻兘鐘舵�佷富棰�
+        /// </summary>
+        public string ControlFunctionTopic
+        {
+            get
+            {
+                return $"/base/{Control.Ins.GatewayId}/thing/property/down";
+            }
+        }
+        /// <summary>
+        /// 鏈湴鎺у埗绾㈠璁惧鍔熻兘涓婚
+        /// </summary>
+        public string ControlIrFunctionTopic
+        {
+            get
+            {
+                return $"/base/${Control.Ins.GatewayId}/thing/property/down";
+            }
+        }
+
+        /// <summary>
+        /// 璇诲彇鍔熻兘鐘舵��
+        /// </summary>
+        public string ReadStatus
+        {
+            get
+            {
+                return $"/base/{Control.Ins.GatewayId}/thing/property/read";
+            }
+        }
+        /// <summary>
+        /// 缃戝叧涓婃姤璁惧鐘舵��
+        /// </summary>
+        public string GatewayUpStatus
+        {
+            get
+            {
+                return $"/base/{Control.Ins.GatewayId}/thing/property/up";
+            }
+        }
+
+        /// <summary>
+        /// 鑾峰彇缃戝叧鐨勫姛鑳藉垪琛�
+        /// </summary>
+        public string GetGatewayFunctionList
+        {
+            get
+            {
+                return $"/user/{Control.Ins.GatewayId}/custom/device/list/get";
+            }
+        }
+
+        /// <summary>
+        /// 缃戝叧涓婃姤璁惧鐘舵��
+        /// 鍘绘帀id瀵规瘮
+        /// </summary>
+        public string GatewayUpSortTopic
+        {
+            get
+            {
+                return "/thing/property/up";
+            }
+        }
+
+        /// <summary>
+        /// 鍦烘櫙鎵ц
+        /// </summary>
+        public string ControlScene
+        {
+            get
+            {
+                return $"/user/{Control.Ins.GatewayId}/custom/scene/execute";
+            }
+        }
+
+        /// <summary>
+        /// 缃戝叧杩涘叆閰嶇綉妯″紡
+        /// </summary>
+        public string AuthGateway
+        {
+            get
+            {
+                return $"/user/{Control.Ins.GatewayId}/custom/device/auth_gateway";
+            }
+        }
+
+        /// <summary>
+        /// 瀹夐槻鎺у埗
+        /// </summary>
+        public string ControlSeurity
+        {
+            get
+            {
+                return $"/user/{Control.Ins.GatewayId}/custom/security/status/set";
+            }
+        }
+        /// <summary>
+        /// 瀹夐槻鐘舵�佹洿鏂�
+        /// </summary>
+        public string SecurityStatusUp
+        {
+            get
+            {
+                return $"/user/{Control.Ins.GatewayId}/custom/security/status/up";
+            }///user/1413055228417130497/custom/security/status/up
+        }
+        /// <summary>
+        /// 璇诲彇瀹夐槻鐘舵�佷俊鎭�
+        /// </summary>
+        public string ReadSecurityStatus
+        {
+            get
+            {
+                return $"/user/{Control.Ins.GatewayId}/custom/security/list/get";
+            }
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0