Gets response from the agent.

API

int Iotc_GetResponse ( IotcSession * iotcSession, IotcGetResponse * response )

Description

Returns GetData response to the Client. If the retrieved command data is for the agent, then 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.

out responseData

Contains the response data received for the request.

Returns
0 on success and -1 on failure.