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.

RTOS/CC2650: Change code to sensortag send a zclGeneral_SendLevelControlMoveToLevel()

Part Number: CC2650

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);