Connect to AWS IoT & Send Data*
• In this lab you are going to:
1. Update the firmware with:
a) The MQTT server address
b) Your device name
c) The Wi-Fi credentials
d) The device Certificate and the device Private Key
2. Load and run the firmware on the STM32L4 Discovery Kit IoT Node
3. Monitor your device activity
*******************
let's go
1. Tera Term Configuration
2. Edit aws_clientcredential.h
https://github.com/aws/amazon-freertos/blob/main/demos/include/aws_clientcredential.h
3. Configure Your AWS IoT Credentials
4. Open aws_demo IAR Project
5. Load and Run
6. Send Data to AWS
• Now the application is up and running. The application will:
1. Connect to the Wi-Fi access point and acquire an IP address
2. Subscribe to the MQTT broker (AWS IoT)
3. Start sending/receive messages to/from the MQTT broker. The application generates an initial thing shadow document and updates the device shadow with the document. It then goes into an infinite loop that periodically updates the thing shadow's desired state, requesting a light bulb change its color (from red to green to red).
7. Monitor your Thing Activity
Commentaires
Enregistrer un commentaire