programmer131 / ESP8266_ESP32_SelfUpdate

89 stars 71 forks source link

ESP8266 version.txt file not found problem leads to "new firmware" result #15

Open AWSW-de opened 2 years ago

AWSW-de commented 2 years ago

Hello, first of all thanks for your code examples. I am working on a similar solution, which i want to use for my projects to auto-update them too.

For HTTP i could solve it myself, but i want to get the files directly from github.com as well without having the extra http server just to save the update files to. My approach was the same to have a text file containing the version number and then downloading the .bin file if a different version was found than the running one...

I want to try your HTTPS code example for my following project, but the ESP8266 variant does not find the version.txt file on the https github server which is printed as "404 not found" error in the serial output of course and then the example code uses this result as the trigger do get the "new firmware" start point as it seems...

I also struggle to use the raw.githubusercontent.com as source to get to my file which are located here for a possible direct download: https://github.com/N1cls/Wordclock/blob/master/WordClockWithWeb/version.txt?raw=true https://github.com/N1cls/Wordclock/blob/master/WordClockWithWeb/WordClockWithWeb.ino.nodemcu.bin?raw=true

If you can give me a hint to make this work it would be really nice. I tried it the complete last evening and could not solve it so far.

Thanks in advance :)