![esp8266 firmware upgrade esp8266 firmware upgrade](http://2.bp.blogspot.com/-V_AbJR34W_Y/VoBsM9GnzxI/AAAAAAAATHE/jfeXaICipO4/s1600/IMG_20151227_001446.jpg)
The answer for this is to have the ESP8266 listen for a connection, on which new firmware can be sent at any time. When you’re in development, however, or when you have only a small number of ESP8266s in and around your own home, waiting for a scheduled upgrade window is quite limiting. All you have to do is put code updates in a known location, and the devices will update themselves automatically!
![esp8266 firmware upgrade esp8266 firmware upgrade](https://hackster.imgix.net/uploads/attachments/1021854/esp_esquematico_3fW0Ad2fHn.png)
Pull upgrades are a good method for when you have a device in production, especially if you’re integrating this into something to be sold. This method of upgrading the firmware is called “Pull” upgrade, as the ESP8266 is “pulling” the latest code from a server. nightly) and retrieve the latest flash code and upgrade to it if it’s newer. The first way is to have the ESP poll a remote system at set intervals (e.g. There are two ways that the firmware could be upgraded over the air. I used this project as an inspiration for my code. A great example of a project that includes a HTTP server, with flashing ability is the JeeLab’s esp-link project. This works, and would be my preferred solution if I were also wanting HTTP server support in my project. This is especially helpful for when you have an ESP8266 in place in a box, or perhaps in a hard to reach location.Ī common setup is to have an HTTP server running on the ESP8266, with one of the URL’s PUSHing the firmware data to the ESP8266. Updating the firmware of a microcontroller without a direct (wired) connection is called Over The Air (OTA) updates.
![esp8266 firmware upgrade esp8266 firmware upgrade](https://alselectro.files.wordpress.com/2015/07/image-21.jpg)
#ESP8266 FIRMWARE UPGRADE SERIAL#
Now that you have your ESP8266 microcontroller on the network, you can take advantage of the fact to upgrade it’s code without having to connect a serial cable. Previous posts on the ESP8266 can be found at the bottom of this page. This is the fourth in a series of posts regarding my experiences with the ESP8266 microcontroller.