From d9a936f7ec50dc04c8786b9a661a0890ade52262 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期六, 28 十一月 2020 19:41:07 +0800
Subject: [PATCH] 20201128

---
 HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs |   38 ++++++++++++++++++++++++++------------
 1 files changed, 26 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..6cf95ed 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,28 @@
     /// <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>
         /// 璋冭瘯杞欢涓婁紶oid鍒楄〃
         /// </summary>
@@ -69,5 +74,14 @@
         /// 璋冭瘯杞欢鑾峰彇appSid鍒楄〃
         /// </summary>
         public const string BusPcGetAppSids = "/user/onpro/custom/function/list/get";
+
+
+        public string ControlFunctionTopic
+        {
+            get
+            {
+                return $"/base/{Control.Ins.GatewayId}/thing/property/down";
+            }
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0