call inflxu

This commit is contained in:
Wolfgang Hottgenroth 2021-02-10 17:54:33 +01:00
parent b34b957041
commit b7a7c999d7

View File

@ -283,6 +283,10 @@ int forwardMinuteBuffer(t_forwarderHandle *handle, t_minuteBuffer *buf) {
return -1; return -1;
} }
logmsg(LOG_INFO, "Payload: %s", payload); logmsg(LOG_INFO, "Payload: %s", payload);
res = httpPostRequest(handle->influxUrl, handle->influxUser, handle->influxPass, payload);
if (res == 0) {
logmsg(LOG_INFO, "Successfully sent to InfluxDB");
}
} }
return 0; return 0;