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.

CC2530: ZStack button double click implementation & 2 or more buttons in one device

Part Number: CC2530


How to implement double click in a ZStack application? I mean which clusters and attributes required to notify the remote side of

1) double click (long click) event

2) 2nd and 3rd button has been clicked if application has 2 or more buttons (like 2 or 3 gang switch)

  • Hello Marat,

    1) You could utilize the Level Control/Dimmer Switch cluster (ZCL_CLUSTER_ID_GEN_LEVEL_CONTROL) attributes to convey this information.  Otherwise you could consider using generic AF_DataRequest commands.

    2) I recommend creating a separate endpoint for each switch, refer to zclGeneral_RegisterCmdCallbacks & zcl_registerAttrList from the sample applications.

    Regards,
    Ryan