ESP8266 InfluxDb
|
#include <InfluxDb.h>
Public Member Functions | |
Influxdb (String host, uint16_t port=8086) | |
void | setDb (String db) |
void | prepare (InfluxData data) |
boolean | write () |
boolean | write (InfluxData data) |
boolean | write (String data) |
ESP8266 InfluxDb: Influxdb.h
Purpose: Helps with sending measurements to an Influx database.
Influxdb::Influxdb | ( | String | host, |
uint16_t | port = 8086 |
||
) |
ESP8266 InfluxDb: Influxdb.cpp
Purpose: Helps with sending measurements to an Influx database.
host | the InfluxDb host |
port | the InfluxDb port |
void Influxdb::prepare | ( | InfluxData | data | ) |
Prepare a measurement to be sent.
void Influxdb::setDb | ( | String | db | ) |
Set the database to be used.
boolean Influxdb::write | ( | ) |
Write all prepared measurements into the db.
boolean Influxdb::write | ( | InfluxData | data | ) |
Write a single measurement into the db.
boolean Influxdb::write | ( | String | data | ) |
Send raw data to InfluxDb.