aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-07-09 14:02:27 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-07-10 23:41:15 +0200
commitdf29972cfd2b85ca049f61022ea309c51769a9e3 (patch)
tree1e6c8efd61b7d66fc9645022ff134c7b55b7fb15
parentd8a55daf9d4d22245f5362f32c42f591ac2faaa6 (diff)
Set reader function unavailable for now
Reader is WIP and should not be used for the moment. Change-Id: Ic106dbe9382f0611ab8c05c6bb4ca61e4153eb39 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--conf.d/project/etc/harvester-config.json4
-rw-r--r--src/plugins/influxdb-reader.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/conf.d/project/etc/harvester-config.json b/conf.d/project/etc/harvester-config.json
index d2f7858..a4716a7 100644
--- a/conf.d/project/etc/harvester-config.json
+++ b/conf.d/project/etc/harvester-config.json
@@ -27,10 +27,6 @@
{
"uid": "write",
"action": "plugin://influxdb#write_to_influxdb"
- },
- {
- "uid": "read",
- "action": "plugin://influxdb#read_from_influxdb"
}
]
}
diff --git a/src/plugins/influxdb-reader.c b/src/plugins/influxdb-reader.c
index 052a3da..7b184dd 100644
--- a/src/plugins/influxdb-reader.c
+++ b/src/plugins/influxdb-reader.c
@@ -235,6 +235,9 @@ static int influxdb_read(sd_event_source *s, uint64_t usec, void *userdata)
return 0;
}
+/*
+ * TODO RFOR: reader functions are not used for the moment
+ */
CTLP_CAPI(read_from_influxdb, source, argsJ, eventJ)
{
int err = 0;