From 4aa6ae21272b3013c5042c73cdc60efa787d57df Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 01 十二月 2020 20:39:02 +0800
Subject: [PATCH] 2020-12-01-4
---
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