Use ota partition to store NVS

brazoayeye
Posts: 41
Joined: Sun May 03, 2020 2:37 pm

Use ota partition to store NVS

Postby brazoayeye » Fri Sep 01, 2023 8:22 pm

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

Who is online

Users browsing this forum: No registered users and 154 guests