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 a4aa032 commit a681065Copy full SHA for a681065
README.md
@@ -7,6 +7,9 @@ Library for NodeMcu / ESP8266 (and Arduino?) for sending measurements to an Infl
7
#define INFLUXDB_HOST "192.168.0.32"
8
#define INFLUXDB_PORT "1337"
9
#define INFLUXDB_DATABASE "test"
10
+ //if used with authentication
11
+ #define INFLUXDB_USER "user"
12
+ #define INFLUXDB_PASS "password"
13
14
// TODO: connect to WiFi
15
@@ -16,6 +19,8 @@ Library for NodeMcu / ESP8266 (and Arduino?) for sending measurements to an Infl
16
19
17
20
// set the target database
18
21
influx.setDb(INFLUXDB_DATABASE);
22
+ // or
23
+ influx.setDbAuth(INFLUXDB_DATABASE, INFLUXDB_USER, INFLUXDB_PASS) // with authentication
24
```
25
26
## Sending a single measurement
0 commit comments