From c44b10e4447e84dbdfa9105edf460ef364a8f2b3 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 30 十一月 2020 19:53:35 +0800
Subject: [PATCH] Merge branch 'master' into WJC

---
 HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs |   87 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 87 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs b/HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs
new file mode 100644
index 0000000..6cf95ed
--- /dev/null
+++ b/HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs
@@ -0,0 +1,87 @@
+锘匡豢using System;
+using System.Text;
+
+namespace HDL_ON.DriverLayer
+{
+    public class A_Protocal_Common
+    {
+
+
+
+    }
+
+    /// <summary>
+    /// 鏈湴閫氳鏁版嵁
+    /// </summary>
+    public class LocalCommunicationData
+    {
+        public string Topic;
+        public int Length;
+
+        public string BodyDataString;
+
+    }
+
+    /// <summary>
+    /// 閫氳鍥炲鏈夋晥鏁版嵁
+    /// </summary>
+    public class ResponsePack
+    {
+        public string id;
+        public string code;
+        public string time_stamp;
+        public object objects;
+    }
+
+    /// <summary>
+    /// 閫氳涓婚
+    /// </summary>
+    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>
+        public const string AddDeviceOids = "/user/onpro/custom/device/add";
+        /// <summary>
+        /// 璋冭瘯杞欢涓婁紶鍔熻兘鍒楄〃
+        /// </summary>
+        public const string AddFunctions = "/user/onpro/custom/function/attribute/add";
+        /// <summary>
+        /// 璋冭瘯杞欢鑾峰彇appOid鍒楄〃
+        /// </summary>
+        public const string BusPcGetAppOids = "/user/onpro/custom/device/list/get";
+        /// <summary>
+        /// 璋冭瘯杞欢鑾峰彇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