FlashDB
FlashDB copied to clipboard
为什么通过时间查询ts数据库记录,有时能查询到记录,有时候查询不到记录,返回记录数为0
如题 https://github.com/armink/flashdb/issues/10 和这个被closed的issues一样 可是更新版本还是没解决 W25Q64 分配了32K的ts空间
do { read_tsl(db, &tsl); if (tsl.time >= from && tsl.time <= to) { /* iterator is interrupted when callback return true */ if (cb(&tsl, cb_arg)) { return; } } else { continue;//这里的return 改成continue可以 但是影响速度 } } while ((tsl.addr.index = get_next_tsl_addr(§or, &tsl)) != FAILED_ADDR);
有没有用 FDB 自带的 example 去测试,结果对吗?
http://armink.gitee.io/flashdb/#/zh-cn/sample-tsdb-basic
有没有用 FDB 自带的 example 去测试,结果对吗?
http://armink.gitee.io/flashdb/#/zh-cn/sample-tsdb-basic
用的是sample里面的API但是有我自己的业务逻辑 我现在把业务逻辑去掉 光用sample测试 晚上给你回馈