wjc
2024-12-23 f753d8366041354da60b8096060f3ab5159e3880
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
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;
 
    }
 
}