mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
* Implement InfluxDBv2 Innitial * Update incl. UI * Correct UI * Update UI - Indiv. Param. * Update edit_config_param.html * Correct Timeshift * Update Fieldname
24 lines
735 B
C++
24 lines
735 B
C++
#ifdef ENABLE_INFLUXDB
|
|
|
|
#pragma once
|
|
#ifndef INTERFACE_INFLUXDB_H
|
|
#define INTERFACE_INFLUXDB_H
|
|
|
|
#include <string>
|
|
#include <map>
|
|
#include <functional>
|
|
|
|
// Interface to InfluxDB v1.x
|
|
void InfluxDBInit(std::string _influxDBURI, std::string _database, std::string _measurement, std::string _user, std::string _password);
|
|
void InfluxDBPublish(std::string _key, std::string _content, std::string _timestamp);
|
|
|
|
// Interface to InfluxDB v2.x
|
|
void InfluxDB_V2_Init(std::string _uri, std::string _database, std::string _measurement, std::string _org, std::string _token);
|
|
void InfluxDB_V2_Publish(std::string _key, std::string _content, std::string _timestamp);
|
|
|
|
|
|
|
|
void InfluxDBdestroy();
|
|
|
|
#endif //INTERFACE_INFLUXDB_H
|
|
#endif //ENABLE_INFLUXDB
|