Getting Device Access Credentials – API
When the Device was created (using Devices/Post), the response provided the unique access credentials that enable the Device to access the IoT Platform Server.
The access credentials must be loaded onto the Device, as described below.
1. Open the config file on the Device and fill in the following properties.
* 
The config file was installed with the IoT Platform Device SDK.
2. Device Access Credentials
The following four fields are the access credentials that enable a device to access the IoT Platform Server. You can get these fields either from the IoT Platform Portal or the IoT Platform REST API, as described above
DeviceId: Enter the id value received in the Devices/Post This is the unique identifier of the Device in the IoT Platform system.
ProductId: Enter the ProductId value received in the Devices/Post This is the unique identifier of the Product in the IoT Platform system.
appId: Enter the appId value received in the Devices/Post This is the unique identifier of the Application in IoT Platform to which this Device belongs.
HubKey: Enter the hubPrimaryKey from the Devices/Post These are the unique access credentials for each Device provided by IoT Platform .