README

Hardware Programming

Now that we have created the resources on Azure we can update the code to point to the IoT Hub and then deploy the devices.

Setting up the ESP

To program the ESP, you hook it up to the USB-to-UART converter; ensure it is in programming mode (by ensuring IO0 is connected to ground) then programming it. If it refuses to program, try unpluging and re-pluging the power pin, as the ESP may have booted in run mode rather than program mode. To program it you clone the repo and then use PlatformIO to program it.

Hackster have a good guide with pictures on wiring if you have never programmed an ESP8266 before.

Building the code

Setting the device locations

Once a device is deployed, its location can be set by following the instructions at the bottom of this README’s Azure page for setting up the device twins.

Deployed device

Below is an image of what a deployed device looks like

Deployed Device