Conclusion

Conclusion

You have completed this AWS IoT EduKit hands-on tutorial to connect your device to AWS as a smart thermostat and deploy a simple application to detect room occupancy and drive HVAC state changes.

As a next step, consider following along with the next hands-on tutorial in this series, Smart spaces:

If you are looking for additional ideas to experiment with your new solution, think of a way to enhance the customer experience. For example, how could you update the solution so that the HVAC setting stays engaged for a minimum timer instead of turning off after no ambient noise is heard for just 10 seconds? Can you achieve this without pushing new code to your device? (Hint: yes, you can.)

Clean up

In this solution you created the following resources in AWS:

  • IoT Core rule
  • IAM roles
  • IoT Events input and detector model

None of these resources incur ongoing metered charges just by existing. You will only incur metered charges as the resources are used to process new messages from your device. If you will proceed with the next hands-on tutorial Smart spaces, it is recommended that you do not destroy any of the resources from this tutorial.

If you have concluded experimenting with this tutorial’s solution and do not intend to explore the Smart spaces tutorial, you can destroy these resources.

  1. Go to AWS IoT Core, choose Act, choose Rules, find your rule in the list and delete it.
  2. Go to AWS IoT Events, choose Detector models, find your model in the list and delete it. Choose Inputs, find your input in the list and delete it.
  3. Go to IAM, choose Roles, find the roles for your IoT Core rules and IoT Events detector model in the list and delete them.
  4. Run the command in PlatformIO CLI terminal window from the Smart-Thermostat folder to erase the device firmware and prevent the device from being connected and sending messages to AWS IoT Core. You can also power down the device by holding the power button for 6 seconds:
pio run --environment core2foraws --target erase

The next tutorial to complete is Smart Spaces.


Report bugs Community support