Skip to content

ricaun/ESP8266httpUpdateTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266httpUpdateTest

This is a simple project to test the ESP8266httpUpdate library with Github as a server.

Json Updater

The ESP8266 check the file update.json in this repository using the link below.

const char * urlVersion = "https://raw.githubusercontent.com/ricaun/ESP8266httpUpdateTest/main/update.json";

The resquest return something like this:

{
    "version": 1.01,
    "update": "https://raw.githubusercontent.com/ricaun/ESP8266httpUpdateTest/main/update_1.01.bin"
}

The version value is compare with the define on the version.ino.

#define VERSION 1.01

If the value is below the json file, the ESP8266 try to update the firmware using the link on the update variable.

HTTPS

To make the https links to work with the ESP8266 the client was set like below.

WiFiClientSecure client;
client.setInsecure();

Do you like this library? Please star this project on GitHub!

About

This is a simple project to test the ESP8266httpUpdate library with Github as a server.

Resources

License

Stars

Watchers

Forks

Contributors

Languages