fcapano / eotaupdate Goto Github PK
View Code? Open in Web Editor NEWAn OTA updater wrapper for ESP32 that also works over SSL
License: MIT License
An OTA updater wrapper for ESP32 that also works over SSL
License: MIT License
Hi,
I am trying to get the example to work. I get the following error when checking for an update:
[E][EOTAUpdate.cpp:169] PerformOTA(): [HTTP] [ERROR] [1073422052] @��?␏
Here's the content of my cfg.txt file :
http://192.168.206.20/ota/firmware.bin
3
Any idea what could be happening? Also, how do you set the log level?
Thanks for the work! I would like to add a description to your library.
The cfg.txt
file must be in UNIX format (ANSI encoding). This is especially true for all Windows users! Line break (LR) should be 0x0A
and nothing more.
There was a question about the Progress bar. It's possible! Because the Updater.cpp library already has a callback function.
For example, create your own callback function (here using serial and LCD):
void OnProgress(int progress, int totalt)
{
static int last = 0;
int progressPercent = (100 * progress) / totalt;
Serial.print(".");
if (last != progressPercent && progressPercent % 5 == 0)
{
// print to 5%
Serial.println(progressPercent);
lcd.setCursor(progressPercent / 5 - 1, 2);
lcd.print(char(255));
}
last = progressPercent;
}
And before running updater.CheckAndUpdate();
run the code:
// set update callback function
Update.onProgress(OnProgress);
updater.CheckAndUpdate();
I'd like to check for an update, update my display, and the preform the update so the user knows what's happening, but I can't seem to do this currently.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.