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.

如何在Z-Stack-3.0.2增加自定义Cluster?

Genius 3030 points

在zcl_xxx_data.c文件增加了如下Cluster信息,但是发不去;

#define MAX_INCLUSTERS       4
const cId_t zcl_InClusterList[MAX_INCLUSTERS] =
{
  ZCL_CLUSTER_ID_GEN_BASIC,
  ZCL_CLUSTER_ID_GEN_IDENTIFY,
  ZCL_CLUSTER_ID_HVAC_FAN_CONTROL,
  TEST_CLUSTER_ID
//  ZCL_CLUSTER_ID_MS_TEMPERATURE_MEASUREMENT
};

#define MAX_OUTCLUSTERS       2
const cId_t zcl_OutClusterList[MAX_OUTCLUSTERS] =
{
  ZCL_CLUSTER_ID_GEN_IDENTIFY,
  TEST_CLUSTER_ID
 // ZCL_CLUSTER_ID_MS_TEMPERATURE_MEASUREMENT
};

//atrribute 初始化 { TEST_CLUSTER_ID, { // Attribute record TEST_ATRR_ID, ZCL_DATATYPE_UINT8, ACCESS_REPORTABLE | ACCESS_CONTROL_WRITE, (void *)&testAttr } }, { TEST_CLUSTER_ID, { // Attribute record ATTRID_CLUSTER_REVISION, ZCL_DATATYPE_UINT16, ACCESS_CONTROL_READ | ACCESS_GLOBAL, (void *)&zcl_clusterRevision_all } },

增加了上述代码,然后原本的Cluster是可以Report,自定义的却不行。