Other Parts Discussed in Thread: Z-STACK
Hi,
I'm making a lighting app (HA) with a coordinator (as Dimmable SW) and a router (as Dimmable Light ), using the HA examples (Sample Light and Sample Switch) for the Z-Stack. For this, I implemented the level control cluster, using the on/off cluster and the ZCL specification (attributes/commands) as reference.
My problem is that the coordinator sends the on/off command without problems but never sends the level control command that i want.
This line is never executed and i don't know why:
if ( keys & HAL_KEY_SW_6){
// Using Level Control
#ifdef ZCL_LEVEL_CTRL
zclGeneral_SendLevelControlStep( SAMPLESW_ENDPOINT, &zclSampleSw_DstAddr, 0x00, 0x80, 0xFFFF, false, 0 );
#endif // ZCL_LEVEL_CTRL
}
Thanks.