Tech blog based on research and development done by the Elementz team.

Menu

Over The Air update for ESP8266 using Arduino IDE

This post will help you to program ESP8266 over WiFi. We are posting this due to repeated requests from our blog viewers. An over-the-air update (OTA) is the wireless delivery of new software or data to a remote device. OTA update can be done in several ways, the simplest way is by using Arduino IDE. Let’s see how it works. Before getting into the update process let’s see what all things needed to do that.

In Arduino IDE, go to tools and configure serial upload parameters for your module and upload the sketch.

Then open serial monitor.If module is connected to network, you will see something like this.

After some time at Tools > Ports > Network ports a new OTA port will appear.Note: If OTA port does not show up, restart Arduino IDE, if it does not help check your firewall settings.

Now your device is ready for OTA update. Now you can upload any code to your device remotely. Open the Arduino IDE and select OTA port and enjoy OTA update. Note: To upload your sketch over and over again using OTA, you need to embed OTA routines inside your sketch. Please use BasicOTA.ino as an example.

Reblogged this on The Technology Tinker and commented:
This is something that I’ve been thinking about doing for a while. I usually use a Huzzah when I do the ESP8266 thing, but I’ve used a “standard” NodeMCU 12-e as well. As a matter of fact, I’ve got a breadboard with one shoved into it to prototype on. The OTA-update to a microcontroller is something that I’ve always wanted to try.