Hello, i have the following escenario: I have Stored in code some ID, this ID is unique in every device (ESP32, i have 3 for the moment), i would like to be able to update the firmware in every ESP, but without erase this ID that i give to them. So, how can i do that? because if i have this : String ID = "A RANDOM ID"; and then i update the firmware vía OTA every device are gonna be updated with the same ID. I was thinking to store the ID in the SPIFFS, or maybe preferences before update, but i dont know if that way this id would survive. It would be awesome if you can "Skip some lines" when it gets updated, but obviously you compile the BIN, so everything get rewritten. Do you have some ideas of what can i do?
If the answer is to use SPIFFS or LittleFS, how can i manage to write and retrieve variables? in general are strings.