大家好!
我现在做zigbee3.0设备,想将一个报警信息发送给网关,我调用了zclGeneral_SendAlarm函数,但是我用抓包工具,抓取不到ALARM报警信息。我也添加了ZCL_CLUSTER_ID_GEN_ALARMS。不清楚还要做哪些工作?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
大家好!
我现在做zigbee3.0设备,想将一个报警信息发送给网关,我调用了zclGeneral_SendAlarm函数,但是我用抓包工具,抓取不到ALARM报警信息。我也添加了ZCL_CLUSTER_ID_GEN_ALARMS。不清楚还要做哪些工作?
你是否有正确的添加cluster在对应的inlcuster和outcluster 我测试一下啊 绑定成功是正常的。
添加cluster如下:
const cId_t zclSampleSw_OutClusterList[] =
{
ZCL_CLUSTER_ID_GEN_IDENTIFY,
ZCL_CLUSTER_ID_GEN_ON_OFF,
ZCL_CLUSTER_ID_GEN_GROUPS,
ZCL_CLUSTER_ID_GEN_ALARMS,
#if defined (OTA_CLIENT_CC26XX)
ZCL_CLUSTER_ID_OTA
#endif
};
const cId_t zclSampleLight_InClusterList[] =
{
ZCL_CLUSTER_ID_GEN_BASIC,
ZCL_CLUSTER_ID_GEN_IDENTIFY,
ZCL_CLUSTER_ID_GEN_GROUPS,
ZCL_CLUSTER_ID_GEN_SCENES,
ZCL_CLUSTER_ID_GEN_ON_OFF,
ZCL_CLUSTER_ID_GEN_ALARMS,
#ifdef ZCL_LEVEL_CTRL
ZCL_CLUSTER_ID_GEN_LEVEL_CONTROL
#endif
};