ESP32 HTTPUpdate (FOTA): SSID and pw in NV-memory lost

Hello,

I have FOTA update working with ESP32 (HTTPUpdate library) but during FOTA ESP32 looses Wi-Fi SSID and password stored to NV-memory. This is quite inconvenient because then manual action is needed to enter those and to get device back online again.

I use Preferences library to store SSID and password: arduino-esp32/libraries/Preferences at master · espressif/arduino-esp32 · GitHub

Is there some way to preserve SSID and password during FOTA?

Thanks,
Tipo

In the advice in the topic "How to get the best out of this forum" posting code is pointed out.

Unintentionally overwriting data is one thinkable way to ruin data.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.