wei
2020-11-28 d9a936f7ec50dc04c8786b9a661a0890ade52262
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";
            }
        }
    }
}