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.

Add device to a Group on ZHA

Other Parts Discussed in Thread: Z-STACK

Hi community...

I'm using zclGeneral_SendGroupAdd(...),  to add devices to a group. Apparently it's working well!

But I defined a Grup Response Call Back ("zclSampleSw_GroupRspCB") in ZCL General Profile Callback table , in Server side (the device that adds the device to a group).

So, when a device is added to the group with success, I should received a zclSampleSw_GroupRspCB???

I present this doubt because, in the zll_sampleremote example, from "Z-Stack Lighting 1.0.2", when the zll_sampleremote added a device, it receives  a zllSampleRemote_GroupRspCB...

I appreciate any help!!

  • Hi,

    please make sure that you register the application endpoint to ZCL general command plugin through zclGeneral_RegisterCmdCallbakcs(), define ZCL_GROUPS compilation flags and populate a structure of type zclGeneral_AppCallbacks_t wiht the corresponding entry for Group response command

    Thanks,

    TheDarkSide

  • Thanks TheDarkSide...

     

    Two more questions:

    After configure a group of devices in a ZigBee network.

    1 -- So, any device from the network, it possible send a comand for that group, OK?

    for example:

                  SampleSw_DstAddr.addrMode = (afAddrMode_t)AddrGroup;

                  SampleSw_DstAddr.addr.shortAddr = 1;

                  zclGeneral_SendOnOff_CmdToggle( SW_ENDPOINT, &zclSampleSw_DstAddr, false, 0 );

    2 -- This happens either for groups or for scenes? So, after configure a sceen, you can send a Scene Recall from any device present in network?