Hello,
If you try to change the LED State from the application it will not change the state if it's the same board, the loop back it's not supported.
You could send the direction to another board and then redirect it to the board you are looking for with an special code or coap resource.
Sorry for the inconvenience this might cause you.
Regards,
Estephania