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.

关于 zcl attribute report上报 的问题

您好,最近在做智能网关这个项目遇到了一个棘手的问题,由于 手动开关OnOff设备需要上报状态改变的信息,所以我需要 Send a Configure Reporting command,但是我发送后,终端设备并没有如期上报。我的代码如下:

    zclCfgReportCmd_t cfg_report;
    memset((char *)&cfg_report, 0, sizeof(zclCfgReportCmd_t));
    cfg_report.numAttr = 1;
    cfg_report.attrList[0].attrID = 0x0000;
    cfg_report.attrList[0].dataType = ZCL_DATATYPE_BOOLEAN;
    cfg_report.attrList[0].direction = 0;
    cfg_report.attrList[0].maxReportInt = 7;
    cfg_report.attrList[0].minReportInt = 6;

zcl_SendConfigReportCmd(2, ..., ZCL_CLUSTER_ID_GEN_ON_OFF, &cfg_report, ZCL_FRAME_CLIENT_SERVER_DIR, 0, 0);

从调试信息看,得到了ConfigReport的响应。如下。

mtAfIncomingMsgCb
ClusterId: 0x0006
SrcAddr: 0x09FC
SrcEndpoint: 0x01
DstEndpoint: 0x02
Data: 0x18 0x00 0x07 0x00
mtAfDataConfirmCb
Status: 0x00
Endpoint: 0x02

但是我手动切换开关,却没手动任何数据,还请大神们解决一下。

x 出现错误。请重试或与管理员联系。