Page 1 of 1

Use ota partition to store NVS

Posted: Fri Sep 01, 2023 8:22 pm
by brazoayeye
Hello,
I have a data logger that connects to wifi and send data to a server, but server/wifi could goes down and in that case now it stores data in ram sending them as soon as the server is reachable again.

Since I have to store multiple bytes (es 20bytes/s) ram space runs out after few hours (I have 6 tasks, ~100kB ram free in heap)
I have 2 big ota partitions (like 1.6M) in flash, one is obviously running but the other one is not used if not in rare cases (and in that cases i can loose all the data).

Is it possible to store data in the unused ota partition as if they are nvs?
or
Is it possible to change partitions type programmatically?

Thanks