I am trying to implement the c8y_Command (Shell) OperationType in the java-agent. I got to the point where I can run the command on the device, I can also set the OperationStatus but I did not find the way to send back the result (command output) string.
http://www.cumulocity.com/guides/reference/device-management/ says:
To communicate the results of a particular command, the device adds a property "result":
"c8y_Command": {
"text": "get uboot.sn",
"result": "165711141901401"
}
if this is how the agent can set the status:
operation.setStatus(OperationStatus.SUCCESSFUL.toString());
then could you show please how to send back the Command result String!
Thanks a bunch.