Programming your ESP8266 OTA
This recipe is going to demonstrate how to upload a sketch to an ESP8266 board over the air. We will upload a simple LED blinking program onto our ESP8266 board using OTA and implement some OTA routines to ensure safety during the upload.
Getting ready
In this recipe, we will need the following components:
- ESP8266 board
- USB cable
- LED (https://www.sparkfun.com/products/528)
- 220 Ω resistor (https://www.sparkfun.com/products/10969)
- Breadboard
- Jumper wires
Start by mounting the LED onto the breadboard. Connect one end of the 220 Ω resistor to the positive leg of the LED (the positive leg of an LED is usually the taller one of the two legs). Connect the other end of the resistor to pin 5 of the ESP8266 board. Then use a jumper wire ...
Get ESP8266 Internet of Things Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.