Uploading a SPIFFS.bin via WebUpdate
Posted:
Wed Aug 03, 2016 11:37 am
by Munt
Hello there folks, does anyone know how I would go about uploading a spiffs.bin file via WebUpdate?
Thanks for your time,
Munt.
Re: Uploading a SPIFFS.bin via WebUpdate
Posted:
Wed Aug 03, 2016 2:50 pm
by martinayotte
Although I didn't tried it myself, the ESP8266HTTPUpdateServer is using the core UpdaterClass which has the following method :
UpdaterClass::begin(size_t size, int command);
ESP8266HTTPUpdateServer is calling it without the command argument, so it ends up using the default U_FLASH command.
By modifying the ESP8266HTTPUpdateServer to explicitly using the U_SPIFFS command, it should work.
Re: Uploading a SPIFFS.bin via WebUpdate
Posted:
Thu Aug 04, 2016 6:22 am
by Munt
Thanks a lot martinayotte! I was able to pass a U_SPIFFS / U_FLASH command to Update.begin().