Hi Sumit,
have a look here: SmartREST 2.0 - Cumulocity IoT Guides
You receive a messsage/Operation via MQTT so what you have to do is actually setting the status to EXECUTING, FAILED, SUCCESSUFL by sending 501 (Executing), 502 (Failed) or 503 (Successful)
All of them must contain the Fragment of the Operation you’ve created in Cumulocity. So if you use Remote Shell this is ‘c8y_Command’
As an example for Shell Command the messages should look like:
- 501,c8y_Command
- 502,c8y_Commands,Failed because of unknown command
- 503,c8y_Command,{{result of you command}} → in my example the show help response text.
The result is shown in the shell tab of Device Management.
In Device Control in Device Management Application you can see the lifecycle of all operations.