Gets commands available for this gateway device from the Server.

API

int Iotc_GetData ( IotcSession * session, IotcGetDataRequest * requestData )

Description

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.

Parameters
in session

Is the connected session returned as part of Iotc_Init call.

Returns
0 on success and -1 on failure.