using System; using System.Text; namespace HDL_ON.DriverLayer { public class A_Protocal_Common { /// /// 获取13位时间戳 /// /// 时间 /// long public long Get_time_stamp() { long t = DateTime.Now.Ticks / 10000; return t; } } /// /// 本地通讯数据 /// public class LocalCommunicationData { public string Topic; public int Length; public string BodyDataString; } /// /// 通讯回复有效数据 /// public class ResponsePack { public string id; public string code; public string time_stamp; public object objects; } /// /// 通讯主题 /// public static class CommunicationTopic { /// /// 搜索本地网关 /// public const string SearchLoaclGateway = "/user/all/custom/gateway/search"; /// /// 调试软件上传oid列表 /// public const string AddDeviceOids = "/user/onpro/custom/device/add"; /// /// 调试软件上传功能列表 /// public const string AddFunctions = "/user/onpro/custom/function/attribute/add"; /// /// 调试软件获取appOid列表 /// public const string BusPcGetAppOids = "/user/onpro/custom/device/list/get"; /// /// 调试软件获取appSid列表 /// public const string BusPcGetAppSids = "/user/onpro/custom/function/list/get"; } }