In this tutorial, you will configure your reference hardware into a smart thermostat that controls a fictional HVAC system. Your smart thermostat will report the measured room temperature and noise level to its device shadow in the cloud. You will also configure a serverless application that will listen for the reported measurements, determine the state to which the thermostat should be set, and send commands back to the device that tells it what to do do.
Assumptions. Before starting this tutorial, verify the following prerequisites:
- You have an M5Stack Core2 ESP32 IoT Development Kit for AWS IoT EduKit.
- You have an AWS account that is not running any production workloads (i.e. an account safe for sandbox and evaluation purposes).
- You have a user login or role to the AWS account with administrator access.
- Your Core2 for AWS IoT EduKit has been provisioned in AWS IoT Core and is already communicating with AWS via MQTT. Start with the Blinky Hello World tutorial if you have not completed provisioning and established connectivity.
- You have at least a basic technical understanding of AWS IoT messaging concepts such as topics, publishing, and subscribing.
Learning Objectives. By the end of this lab, you should know:
- How to acquire temperature and sound levels from the Core2 for AWS IoT EduKit device.
- How to publish temperature and sound measurements from the device to AWS IoT Core.
- How to report measured values to the device shadow.
- How to perform message transforms with the AWS IoT Core rules engine.
- How to build a serverless application that responds to inputs and detects complex events.
- How to send commands to your device via the device shadow.
To get started with this tutorial, go to the first chapter, Introduction.