package com.hdl.sdk.link.zigbee.config; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * Created by jlchen on 12/16/21. * ZigBee原生协议控制码相关 */ public class ZigBee { // /** // * 主题 // */ // @StringDef({}) // @Retention(RetentionPolicy.SOURCE) // public @interface TopicType { // //发送指令到网关进行定位(网关LED闪烁识别) // String GwLinuxLocate = "GwLinuxLocate"; // //设备列表-获取本地网关设备 EPDeviceId 列表 // String GetDeviceInfo = "GetDeviceInfo"; // //获取入网设备 // String SearchNewDevice = "SearchNewDevice"; // //修改设备端口(按键)名称 // String DeviceRename = "DeviceRename"; // //设备列表-设备删除(使设备离网) // String RemoveDevice = "RemoveDevice"; // //设备控制-族 Id-3-identify 定位功能 // String Identify = "Identify"; // //对端点回路设备功能类型进行设置 // String SetEPDeviceFunctionType = "Device/SetEPDeviceFunctionType"; // // } /** * 回复主题 */ public @interface ReplyTopicType { //发送指令到网关进行定位(网关LED闪烁识别) public final String GwLinuxLocate = "GwLinuxLocate_Respon"; //设备列表-获取本地网关设备 EPDeviceId 列表 public final String GetDeviceInfo = "DeviceInfoRespon"; //获取入网设备 public final String SearchNewDevice = "Device/SearchNewDevice"; //修改设备端口(按键)名称 public final String DeviceRename = "DeviceRenameRespon"; //设备列表-设备删除(使设备离网) public final String RemoveDevice = "RemoveDeviceRespon"; //设备控制-族 Id-3-identify 定位功能 public final String Identify = "Identify"; //对端点回路设备功能类型进行设置 public final String SetEPDeviceFunctionType = "Device/SetEPDeviceFunctionType"; //新设备入网 public final String DeviceInComingRespon = "DeviceInComingRespon"; //设置入网流程方式 public final String SetJoiningModeRespon = "SetJoiningMode_Respon"; } /** * 控制码 */ public class CommandType { //发送指令到网关进行定位(网关LED闪烁识别) public static final int GwLinuxLocate = 85; //设备列表-获取本地网关设备 EPDeviceId 列表 public static final int GetDeviceInfo = 93; //获取入网设备 public static final int SearchNewDevice = 94; //修改设备端口(按键)名称 public static final int DeviceRename = 96; //设备列表-设备删除(使设备离网) public static final int RemoveDevice = 99; //对端点回路设备功能类型进行设置 public static final int SetEPDeviceFunctionType = 110; } }