HttpUpdate Error [-100] Too Less Space - only on second try
Posted: Mon Mar 05, 2018 12:02 pm
Can't find the specific error in search. Using esphttpupdate to pull a .bin file compiled in Arduino from my server.
Board: Adafruit Huzza E12S - 4MB (3M SPIFFS)
Bin file size: 239k
1st upload: Works perfectly.
2nd upload: Fails with: Error [-100] Too Less Space - even with the exact same sketch/bin file.
If I then re-flash (same sketch) via COM/USB, it uploads fine.
Now, a new OTA from server -> works perfectly but 2nd attempt gives same error.
Update code - I return OK + binary file if update is needed...
Thanks
Board: Adafruit Huzza E12S - 4MB (3M SPIFFS)
Bin file size: 239k
1st upload: Works perfectly.
2nd upload: Fails with: Error [-100] Too Less Space - even with the exact same sketch/bin file.
If I then re-flash (same sketch) via COM/USB, it uploads fine.
Now, a new OTA from server -> works perfectly but 2nd attempt gives same error.
Update code - I return OK + binary file if update is needed...
Code: Select all
void checkForUpdate()
{
t_httpUpdate_return ret = ESPhttpUpdate.update("192.168.1.101", 80, "/UpdateESP8266OTA?softwareVersion=" + softwareVersion + "&deviceFamily=ESP8266PIR");
switch (ret) {
case HTTP_UPDATE_FAILED:
Serial.println("Update failed.");
Serial.printf("Error (%d): %s\n", ESPhttpUpdate.getLastError(), ESPhttpUpdate.getLastErrorString().c_str());
break;
case HTTP_UPDATE_NO_UPDATES:
Serial.println("No update needed.");
break;
case HTTP_UPDATE_OK:
Serial.println("Update ok.");
break;
}
}
Thanks