IOT100 - Lesson 5 - Controlling an LED from the Cloud
From aoxoaWiki
Jump to navigationJump to searchProject Goal: To receive commands from the internet to control the Huzzah.
U N D E R - C O N S T R U C T I O N
This lesson will cover:
- connecting to the Adafruit IO Cloud
- configuring a datafeed on the cloud
- subscribing to events from the cloud
- message handlers
- using Serial output to trace a program
Contents
Overview
One of the easiest ways to receive extrnal commands on the Huzzah is to "subscribe" to a datafeed from the Adafruit Cloud. we define a datafeed on the Cloud website by giving it a name, and define the type of values it has. Then we can add a dashboard on the Cloud to let us control that value with a phone, or another computer. When the Huzzah starts up, it will "subscribe"to that datafeed, so that whenever the value of the datrafeed is changed, the Cloud will automatically send us a message with the new value.