Using Arduino MKR WAN 1310 Flash Memory to store measurements

Hi, I'm currently in a school project involving pressure and temperature sensors in rivers. Once measurements are collected, we want to send our data via LoRa using the Arduino MKR WAN 1310, which has the possibility of sending data via LoRa, while having a low consumption.

The tricky part comes when we want to create a backup locally in case the transmission is cut. So we had the idea to write our measures in the Flash Memory of the card (which has 2Mo of capacity). The clear advantage (when put next to a SD card solution) is the really low consumption, because we need for the system to be maintained at least for 3 months.

I tried using a library called <FlashStorage.h>, but I didn't managed to "append" a new measure to the Flash Memory. What I can do is only write and read an only mesure or write and entire array of measure (but it is way too ineficient and it obviously fill up the RAM).

What could be my options ? The low consuption is essential in our project, and if SD storage is our only solution, it will impact the following of our project, so it's a crucial question :). Flash Storage seemed to be intersting as data won't disapear if not powered.

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