|
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? |
Answered by
armink
Jul 21, 2023
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 . |
1 reply
Answer selected by
amuroh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 .