Create iot-connect.cfg
Create the iot-connect.cfg file with the device connection attributes.
The iot-connect.cfg file defines the attributes of the connection between the device and the Device Cloud, including location of the CA certificates file, the domain name for the Device Cloud endpoint, and the port number.
It also includes the token for the device manager. The token must match the value of the token associated with the name of the device manager in the Device Cloud. For example, if hdc_device_manager_clib_app is be associated with the token dFXfyZN6kXeNoKtAs, then that token must also be used in iot-connect.cfg.
The procedure described below involves manually creating the iot-connect.cfg.
Alternatively you can run control-main from the VxWorks kernel shell. The application prompts you for the Device Cloud and port number, the device manager token, the file path for the CA certificates file, and the proxy server type (if applicable). It then writes the file to the directory specified with the DEVICE_CLOUD_AGENT_CONFIG_DIR configuration parameter.