The command callback function type.

API

typedef int IotcCommandCb(const IotcCommand *command, IotcCommandResponse *response, void *context)

Parameters
in

command is the command received from the server.

out

response is the response data to be sent to the server for the command.

in context is the opaque context data that is supplied by the client during command callback registration.
Returns
0 on success. -1 on error.