fix ota update for esp32

This commit is contained in:
Dmitry Borisenko
2020-10-19 01:44:06 +03:00
parent cfd9d5baa0
commit bea7afd057
2 changed files with 1 additions and 2 deletions

View File

@@ -25,7 +25,6 @@ lib_deps =
${common_env_data.lib_deps_internal}
AsyncTCP
madhephaestus/ESP32Servo
LITTLEFS
luc-github/ESP32SSDP
monitor_filters = esp32_exception_decoder
upload_speed = 921600

View File

@@ -92,7 +92,7 @@ bool upgradeFS() {
t_httpUpdate_return retFS = ESPhttpUpdate.updateSpiffs(wifiClient, F("http://95.128.182.133/projects/iotmanager/esp8266/littlefs/littlefs.bin"));
#else
httpUpdate.rebootOnUpdate(false);
HTTPUpdateResult retFS = httpUpdate.updateSpiffs(wifiClient, F("http://95.128.182.133/projects/iotmanager/esp32/littlefs/littlefs.bin"));
HTTPUpdateResult retFS = httpUpdate.updateSpiffs(wifiClient, F("http://95.128.182.133/projects/iotmanager/esp32/littlefs/spiffs.bin"));
#endif
if (retFS == HTTP_UPDATE_OK) { //если FS обновилась успешно
SerialPrint("I", "Update", "LittleFS upgrade done!");