Skip to content

Commit a4aa032

Browse files
committed
InfluxDB authentication support added.
1 parent 5fdd37a commit a4aa032

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

InfluxDb.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class Influxdb {
1818

1919
void setDb(String db);
2020

21+
void setDbAuth(String db, String user, String pass);
22+
2123
void prepare(InfluxData data);
2224
boolean write();
2325

@@ -29,5 +31,7 @@ class Influxdb {
2931
String _host;
3032
uint16_t _port;
3133
String _db;
34+
String _user;
35+
String _pass;
3236
std::list<InfluxData> prepared;
33-
};
37+
};

0 commit comments

Comments
 (0)