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