ESP8266 InfluxDb
Public Member Functions | List of all members
Influxdb Class Reference

#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)
 

Detailed Description

ESP8266 InfluxDb: Influxdb.h

Purpose: Helps with sending measurements to an Influx database.

Author
Tobias Schürg

Constructor & Destructor Documentation

◆ Influxdb()

Influxdb::Influxdb ( String  host,
uint16_t  port = 8086 
)

ESP8266 InfluxDb: Influxdb.cpp

Purpose: Helps with sending measurements to an Influx database.

Author
Tobias Schürg Construct an InfluxDb instance.
Parameters
hostthe InfluxDb host
portthe InfluxDb port

Member Function Documentation

◆ prepare()

void Influxdb::prepare ( InfluxData  data)

Prepare a measurement to be sent.

◆ setDb()

void Influxdb::setDb ( String  db)

Set the database to be used.

◆ write() [1/3]

boolean Influxdb::write ( )

Write all prepared measurements into the db.

◆ write() [2/3]

boolean Influxdb::write ( InfluxData  data)

Write a single measurement into the db.

◆ write() [3/3]

boolean Influxdb::write ( String  data)

Send raw data to InfluxDb.


The documentation for this class was generated from the following files: