-
Hello and congratulations for this great project. I am integrating FlashDB TSL on a battery powered device. Sometimes on system crash or power loss the RTC may be reset to a default value (e.g. January 1st 2010). If I call tsl_append() it returns an error because current time is less than last saved timestamp.
Is there any way to allow FlashDB to store TSL swith the current RTC time even if it is less than the last one? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, you can reimplement the get_time function and use count ++ instead of timestamp. After restart, the old count can be get by FDB_TSDB_CTRL_GET_LAST_TIME command . |
Beta Was this translation helpful? Give feedback.
Hi, you can reimplement the get_time function and use count ++ instead of timestamp. After restart, the old count can be get by FDB_TSDB_CTRL_GET_LAST_TIME command .