-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gzUpdater fails #8
Comments
Thanks for your feedback. There are some more information I'll need to get a better understanding of the situation:
Meanwhile I will try to reproduce the issue. |
@tobozo -- thanks for the rapid response! I don't see an option for ESP Exception decoder. I'm using Arduino 2 on a Mac. Board is a Heltec ESP LORA V2 (8MB). I use these two lines to build the spiffs bin and flash when manually uploading the firmware bin, as I did for this test:
Partition map:
Apologies, should have turned on debug logging:
The [D][Updater.cpp:136] begin(): OTA Partition: app1 is what I see on my program as well. |
thanks to your feedback I found a couple of bugs and (hopefully) fixed them your example code now produces the expected behaviour when used with the latest commit on the master branch please let me know if things have improved for you and I'll produce a new release |
@tobozo -- that worked! I was able to verify with my application (yay!) but not Arduino IDE, because you didn't bump the version tag. I suspect you will now that I've validated it works. Please do ;) THANK YOU VERY MUCH FOR YOUR FAST TURN-AROUND!!! |
@tobozo -- one last comment. The update process Serial.print's a progress bar. Some applications need to control Serial. If possible, would you be willing to support a silent version of gzUpdate and eliminate the output?
If not, it's cool, I'll fork and eliminate it. Thanks! |
Good suggestion I've pushed some changes, now exposing the void myNullProgressCallback( uint8_t progress ) {
// printf("Progress: %d", progress );
}
void myNullLogger(const char* format, ...) {
//va_list args;
//va_start(args, format);
//vprintf(format, args);
//va_end(args);
}
void setup() {
Serial.begin( 115200 );
setProgressCallback( myNullProgressCallback );
setLoggerCallback( myNullLogger );
} |
@tobozo -- perfect! Again, thanks so much for the rapid turn-around and being open to changes. |
Hi,
I'm provisioning new firmware updates via https server, downloading the gz to SPIFFS and (hopefully) using your library to update. It's failing, so went to your example and that fails. Here's the sketch:
The binary I'm using is the output from this sketch. I use:
Host OS doing the gzipping and serving, and gzip version:
To prove the error, I gzip the firmware of this sketch, then build and upload a SPIFFS partition (also contains my certs / keys, so this is proven functional).
Here's the output of the run, which is the same as what I get with my program:
Any support would be greatly appreciated.
The text was updated successfully, but these errors were encountered: