Gemalto is now part of the Thales Group, find out more.

You are here

Delay multiple writes to FFS of EHS6T using buffering? | Thales IoT Developer Community

June 17, 2018 - 6:29am, 1214 views

Hello,

So I am presently trying to avoid the risk of overusing FFS writes by adopting say the equivalent of BufferedWriter for J2ME on the EHS6T.

Because I am logging some records to a file many ***** a day, I would like a balance between writing all to RAM then risking losing data if the device should power off unexpectedly, and writing repeatedly to the FFS (when I say repeatedly I mean every minute multiplies by say about five rows or more per minute.

Is there a particular way anyone might recommend to write the data either to buffer or file so as to minimise the number of file writes to the FFS during its lifespan? I've read similar forum threads on this, but unfortunately cant seem to achieve it using buffer sizes.

Many thanks.

N.