We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a54395 commit c661cf6Copy full SHA for c661cf6
InfluxDb.cpp
@@ -153,6 +153,8 @@ boolean Influxdb::write(String data) {
153
Serial.print(" --> writing to " + _db + ":\n");
154
Serial.println(data);
155
}
156
+ if(_db_v == 2)
157
+ http.addHeader("Authorization", "Token " + _token);
158
int httpResponseCode = http.POST(data);
159
Serial.print(" <-- Response: ");
160
Serial.print(httpResponseCode);
0 commit comments