New file |
| | |
| | | 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 DEIVCE_AUTH_RESULT_NOTIFY = "/user/%s/custom/device/auth/result_notify"; |
| | | |
| | | //搜索网关 |
| | | 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"; |
| | | |
| | | //link tcp 登录 |
| | | public static final String GATEWAY_LOGIN = "/user/%s/custom/gateway/login"; |
| | | |
| | | /** |
| | | * 设备连接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 LINK_BROADCAST = "/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"; |
| | | |
| | | //通知删除并退网子设备 |
| | | public static final String DELETE_REQUEST = "/base/%s/thing/topo/delete/request"; |
| | | |
| | | //网关响应退网通知 |
| | | public static final String DELETE_NOTIFY = "/base/%s/thing/topo/delete/notify"; |
| | | |
| | | public static final String DELETE_NOTIFY_REPLY = "/base/%s/thing/topo/delete/notify_reply"; |
| | | |
| | | //网关物理删除(退网)子设备后上报 |
| | | public static final String DELETE_UP = "/base/%s/thing/topo/delete/up"; |
| | | |
| | | //驱动上报oid列表 |
| | | public static final String LIST_UPLOAD = "/user/%s/custom/device/list/upload"; |
| | | |
| | | //驱动上报oid列表回复 |
| | | public static final String LIST_UPLOAD_REPLY = "/user/%s/custom/device/list/upload_reply"; |
| | | |
| | | |
| | | } |