Other Parts Discussed in Thread: Z-STACK
Hi,
I am trying to add multiple end points to the end point using CC2652 TI EVK boards.
I am using two EVK boards. One act as switch which has the co-ordinator role and the other act as light which has the end device role.
The end device EVK has two leds green and red. I wanted to control these two leds individually. So I created two end points at the end device side .
And at the co-ordinator [switch] side , the found the following code
void zclSampleSw_UiActionToggleLight(uint16 keys) //Anjali
{
if (zclSampleSw_OnOffSwitchActions == ON_OFF_SWITCH_ACTIONS_TOGGLE)
{
if (keys & UI_KEY_SW_5_PRESSED)
{
zstack_bdbGetZCLFrameCounterRsp_t Rsp;
Zstackapi_bdbGetZCLFrameCounterReq(zclSampleSw_Entity, &Rsp);
zclGeneral_SendOnOff_CmdToggle( SAMPLESW_ENDPOINT, &zclSampleSw_DstAddr, FALSE, Rsp.zclFrameCounter );
}
else
{
// Other zclSampleSw_OnOffSwitchActions are not supported by this UI
}
}
}
Here the code line zclGeneral_SendOnOff_CmdToggle( SAMPLESW_ENDPOINT, &zclSampleSw_DstAddr, FALSE, Rsp.zclFrameCounter ); send the command to SAMPLESW_ENDPOINT which is defined for the red led control , but here green led also getting controlled.
Could anyone please help with this issue?