call inflxu

This commit is contained in:
Wolfgang Hottgenroth 2021-02-10 17:54:33 +01:00
parent e2dde9cad9
commit 45cc8db7c3
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -283,6 +283,10 @@ int forwardMinuteBuffer(t_forwarderHandle *handle, t_minuteBuffer *buf) {
return -1;
}
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;