Amazon Freertos workshop using the M5 StickC
View the Project on GitHub onsankawai/amazon-freertos-m5stickc-workshop
A couple years ago, AWS announced the AWS IoT Button you could order from Amazon.com. Why not create our own ?
For this lab, our M5StickC will act as an AWS IoT Button, allowing you to trigger downstream AWS Services.
In order to configure the code and your M5StickC for Lab1, you must change the following lines of code:
In file: ./amazon-freertos/vendors/espressif/boards/m5stickc/aws_demos/application_code/m5stickc_lab_config.h
Change the LAB define to: M5CONFIG_LAB1_AWS_IOT_BUTTON
Replace:
#define M5CONFIG_LAB0_DEEP_SLEEP_BUTTON_WAKEUP
With:
#define M5CONFIG_LAB1_AWS_IOT_BUTTON
cd ./amazon-freertos/vendors/espressif/boards/m5stickc/aws_demos
make all -j4
Please follow the procedure form the following Setup guide.
Log into your AWS IoT Management console, and subscribe to the following topic:
m5stickc/+
{
"serialNumber": "[YOUR DEVICE SERIAL NUMBER]",
"clickType": "SINGLE"
}