ESP8266httpUpdate web interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Syfaro 0356028940 Fix incorrect EXPOSE port. 3 months ago
persephone Dockerfile, build with Drone. 3 months ago
.drone.yml Dockerfile, build with Drone. 3 months ago
.gitignore Initial commit. 11 months ago
Dockerfile Fix incorrect EXPOSE port. 3 months ago
Pipfile Dockerfile, build with Drone. 3 months ago
Pipfile.lock Dockerfile, build with Drone. 3 months ago
README.md Usage in README. 11 months ago
screenshot.png Add README and screenshot. 11 months ago

README.md

Persephone

Easy way of managing firmware and configuration on ESP8266 devices using ESP8266httpUpdate.

Usage

Configuring updating is quite easy. First, you must have a version constant defined somewhere. Then, add the following line to your loop:

ESPhttpUpdate.update("192.168.1.2", 5000, "/update", version);

Replace the IP address and port as needed with where your server is located.

Setting up configuration is a little more difficult (until I finish the library to do it for you). The /config endpoint expects a X-PERSEPHONE-CFG-UPDATE header with the unix timestamp of the last configuration update. It also requires the X-ESP8266-STA-MAC header with your ESP8266’s MAC address (as it uses this to identify devices).

It will return a 304 if the configuration is already up to date, or the contents of the configuration file otherwise. On the response, it sets a X-Update-Time header that you should store to send in the next requests.