Replies: 2 comments 4 replies
-
Hi @gde-2, Thanks so much for getting in touch about the changes you made to support the TSADD operation, that is fantastic! I'd be more than happy to incorporate your changes into the library itself, and fortunately it's a pretty simple process as well. Simply open a pull request with these changes, assign it to me & I'll merge them into the main branch and produce a new release! If you're unfamiliar with pull requests I'd be happy to answer any questions, but hopefully these great docs from Github themselves will provide some great information:
Thanks again for reaching out and I really look forward to helping you get your changes merged, I'm certain the community will appreciate them as well! 🙌 🚀 |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the timeseries support! Could we also add the following: this will use whatever timestamp is in the server so makes it easier to add an entry to the series when you don't have a time-synced micro-controller: diff --git a/Redis.cpp b/Redis.cpp
String Redis::info(const char *section) bool tsadd(const char *key, unsigned long timestamp, const int value);
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
As I needed TimeSeries support from a Arduino Redis library I updated the redis.h and redis.cpp to support the redis TSADD operation. I would like to share my changes so thatit can be reviewed and if approved added to the distribution. Any proposal how to do this?
Regarding the code here are the changes:
redis.h:
bool tsadd(const char *key, unsigned long timestamp, const int value);
redis.cpp:
bool Redis::tsadd(const char *key, unsigned long timestamp, const int value)
{
TRCMD_EXPECTOK("TS.ADD" , key, String(timestamp)+"000", String(value));
}
Beta Was this translation helpful? Give feedback.
All reactions