Webserver

How to setup the webserver files.

An ESP has the ability to do OTA update, which is easy when developing code. This firmware has the ability do pull firmware and configuration updates from simple webserver. All the webserver has to do is to serve some file that reside in specific directory.

In the device configuration, in the update section, the server location is configured. configUrl for the host based configuration and manifestUrl for the firmware location.

A good starting point for the directory structure would be as follows.

/esp/config
    /firmware

You are free to do as you wish as long as it is in line with the board configurations!

At the moment the firmware does not support https so all has to be http traffic.

A best practice is to make the webserver name based, this makes future IP address changes not such as hassle, don’t ask my why ;-)