This function retrieves details such as device ID, device type, device name, template ID, template name, enrollment state, parent ID, parent gateway ID, system properties, custom properties and allowed metrics of all the connected devices of a device.

API

int Iotc_GetDevicesData ( IotcSession * iotcSession, IotcDeviceId * parentId )

Description

The devices are returned with a pointer to IotcDeviceDataSet in the IotcGetResponse with IOTC_GET_DEVICES_DATA as the response message type.

Parameters
iotcSession

The current IotcSession to be used.

parentId

Device ID for which the connected device IDs must be retrieved.