The command callback registration function.

API

int Iotc_RegisterCommandCallback ( IotcSession * iotcSession, IotcCommandCb * cb, void * context )

Parameters
in

IotcSession - The current IoTCSession to be used.

in

cb - The command callback function.

in context - The pointer to any context data that must be supplied when cb is called.
Returns
0 on success. -1 on error.