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:

  1. thing_name: Thing name that represents your device in your AWS IoT account.
  2. 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.
  3. Certificates settings:
    1. 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.
    2. rootca_filename: Name of the Root CA file located in the configured certs_path.
    3. signed_cert_filename: Name of the device signed certificate file located in the configured certs_path.
    4. 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.