Gets commands available for this gateway device from the Server.


int Iotc_GetData ( IotcSession * session, IotcGetDataRequest * requestData )


Sends a request to the server to check if there are any commands available for this gateway. If the retrieved command data is for the agent, then the agent processes it. Any command data that is not for the agent is returned to the client as response data.

in session

Is the connected session returned as part of Iotc_Init call.

0 on success and -1 on failure.