Skip to content

# OTA Updates

## OTA Updates with AutoConnect

AutoConnect provides two types of the platform for updating the binary sketch stored in the ESP8266 or ESP32 module via OTA. They correspond to the Web Browser Update and HTTP Server Update mentioned in the ESP8266 Arduino Core documentation.

The update behavior when using a web browser as an update client keeps with the scenario assumed by the ESP8266 arduino core. Therefore, the user sketch must meet the requirements described in the ESP8266 Arduino Core documentation, but it is not difficult to incorporate an implementation for that into a sketch using AutoConnect. All you need to do is bind the ESP8266HTTPUpdateServer library class1 of the ESP8266 Arduino core as an AutoConnectAux to the AutoConnect menu.

It is for the only the same network

This method can apply only if the client browser and the ESP module belong to the same network segment. It cannot work correctly across networks.

Another update method using an update server can be applied more broadly than using a web browser. This method can also update the ESP module over the Internet if you can secure the correct route and transparency between the ESP module and the update server. To configure this platform, you need to have an update server along with using the AutoConnectUpdate class in your sketch.

Security Disclaimer

The security of the OTA update platform provided by AutoConnect is a very weak level. No guarantees as to the level of security provided for your application by the AutoConnect OTA Update is implied.

1. The AutoConnect library provides an implementation of the HTTPUpdateServer class that ported from ESP8266HTTPUpdateServer class for ESP32 intention. It is contained the WebUpdate under the examples folder. ↩