Tool/software: TI-RTOS
Hi everyone!!
Please help me!!
I want to change or implement a code to send a zclGeneral_SendLevelControlMoveToLevel.
When i try to send Cmd On/Off or toggle it works, but i have not not sucess with zclGeneral_SendLevelControlMoveToLevel.
My situation is :
1 - Switch -----------------------> send ON/OFF/TOGGLE --------------> LIGHT DEVICE works!!!
2 - Switch ------------------------> send MoveToLevel ----------------------> Light dont works!!
I am tryig use the following code to send MoveToLevel
zswDstAddr.addrMode = zstack_AFAddrMode_NONE;
zswDstAddr.addr.shortAddr = 0;
zswDstAddr.endpoint = 0;
dstAddr.addrMode = (afAddrMode_t)zswDstAddr.addrMode;
dstAddr.addr.shortAddr = zswDstAddr.addr.shortAddr;
dstAddr.endPoint = zswDstAddr.endpoint;
zswCurrentLevel++;
zclGeneral_SendLevelControlMoveToLevel(SWITCH_EP, &dstAddr,zswCurrentLevel,0xFFFF,false,0);