4. Configure your device Thing
By default, the awsiot-sample application reads the configuration to connect to AWS IoT platform from the /etc/awsiotsdk.conf file. Configure the following settings:
- thing_name: Thing name that represents your device in your AWS IoT account.
- host: MQTT host or endpoint, similar to "ABCDEFG1234567.iot.us-west-2.amazonaws.com". You can obtain it from the Settings menu on the navigation bar of the AWS IoT Console.
- Certificates settings:
- certs_path: Absolute path of the certificates directory in the device. If you install them under /etc/ssl/certs you do not need to modify it.
- rootca_filename: Name of the Root CA file located in the configured certs_path.
- signed_cert_filename: Name of the device signed certificate file located in the configured certs_path.
- private_key_filename: Name of the device private key file located in the configured certs_path.
CAUTION! Issue the sync command after editing the /etc/awsiotsdk.conf file.