hxb
2022-02-17 af2cbc2a24b3724e7fc3e6b42e134b21a3144c75
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package com.hdl.sdk.common.config;
 
/**
 * Created by Tong on 2021/9/22.
 */
public class TopicConstant {
 
    //网关广播入网指令
    public static final String GATEWAY_AUTH_BROADCAST = "/user/all/custom/device/network_access/broadcast";
 
    //设备入网和认证
    public static final String DEIVCE_AUTH_REQUEST = "/user/all/custom/device/network_access/request";
 
    //设备入网和认证响应
    public static final String DEIVCE_AUTH_REQUEST_REPLY = "/user/all/custom/device/network_access/request_reply";
 
    //搜索网关
    public static final String GATEWAY_SEARCH = "/user/all/custom/gateway/search";
 
    //搜索网关响应
    public static final String GATEWAY_SEARCH_REPLY = "/user/all/custom/gateway/search_reply";
 
    //网关详细信息获取s=gw_id
    public static final String GATEWAY_INFO = "/user/%s/custom/gateway/get";
 
    //获取物理设备列表
    public static final String GET_DEVICE_LIST = " /user/%s/custom/device/list/get";
 
    //获取物理设备列表响应
    public static final String GET_DEVICE_LIST_REPLY = " /user/%s/custom/device/list/get_reply";
 
    //获取功能列表
    public static final String GET_FUNCTION_LIST = "/user/%s/custom/function/list/get";
 
    //获取功能响应
    public static final String GET_FUNCTION_LIST_REPLY = "/user/%s/custom/function/list/get_reply";
 
    //功能属性读取
    public static final String GET_FUNCTION_ATTRIBUTE = "/user/%s/custom/function/attribute/get";
 
    //功能属性响应
    public static final String GET_FUNCTION_ATTRIBUTE_REPLY = "/user/%s/custom/function/attribute/get_reply";
 
    //控制
    public static final String PROPERTY_DOWN = "/base/%s/thing/property/down";
 
    //控制响应
    public static final String PROPERTY_DOWN_REPLY = "/base/%s/thing/property/down_reply";
 
    //状态上报
    public static final String PROPERTY_UP = "/base/%s/thing/property/up";
 
    //状态上报响应
    public static final String PROPERTY_UP_REPLY = "/base/%s/thing/property/up_reply";
 
    //读取状态
    public static final String PROPERTY_READ = "/base/%s/thing/property/read";
 
    //读取状态响应
    public static final String PROPERTY_READ_REPLY = "/base/%s/thing/property/read_reply";
 
    //8.1获取场景列表
    public static final String SCENE_LIST_GET = "/user/%s/custom/scene/list/get";
 
    //8.2获取场景
    public static final String SCENE_GET = "/user/%s/custom/scene/get";
 
    //8.3执行场景
    public static final String SCENE_CONTROL = "/user/%s/custom/scene/execute";
 
    //8.4场景增加
    public static final String SCENE_ADD = "/user/%s/custom/scene/add";
 
    //8.5场景编辑
    public static final String SCENE_EDIT = "/user/%s/custom/scene/edit";
 
    //8.6场景删除
    public static final String SCENE_DELETE = "/user/%s/custom/scene/delete";
 
    /**
     * 设备连接TCP之前广播
     */
    public static final String BROADCAST="/user/all/custom/gateway/broadcast";
 
    /**
     * 主网关回复
     */
    public static final String BROADCAST_REPLY="/user/all/custom/gateway/broadcast_reply";
 
    /**
     * 心跳检测
     */
    public static final String HEARTBEAT="/user/%s/custom/gateway/heartbeat";
    /**
     * 心跳检测回复
     */
    public static final String HEARTBEAT_REPLY="/user/%s/custom/gateway/heartbeat_reply";
}