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.

CC2538: How to add private attribute in sampleswitch?

Part Number: CC2538


I add private attribute in zcl_samplesw_data.c. The cluster ID is ZCL_CLUSTER_ID_GEN_ON_OFF and attribute ID is ATTRID_TABLE_ENTRY.

I defined ATTRID_TABLE_ENTRY 0x0001 in zcl_general.h.

In zclSampleSw_Init, I invoke zclHA_Init, zclGeneral_RegisterCmdCallbacks and zcl_registerAttrList.

I did the same thing in zcl_samlelight too.

However, server cannot get new attribute after client wrote the attribute of  ATTRID_TABLE_ENTRY.

Where am I wrong?