I have a question about NoteCard notes data retention.
If the host CPU issues a note while the NoteCard is not connected to an LTE tower, it will be stored in the internal flash memory, correct?
If so, will it remain in the internal flash until it is successfully delivered to Notehub?
Is there any time limit for data retention?
That is correct - there is ample flash memory on the Notecard to store Notes that are pending syncing with Notehub. Those will remain in flash in perpetuity (until they successfully sync or you reset the Notecard with a card.restore command for instance).
It would be useful to have a time-to-live (TTL) value added with each note so that these can be automatically purged by Notecard when they expire.
In the absence of a TTL, we are using the live flag on note.add which tells Notecard not to store the note in flash. We are using this for realtime data that doesn’t have much relevance if it’s not immediately delivered, but ideally a TTL of 5 minutes or so would be preferable.