interface_influxdb.h 723 B

123456789101112131415161718192021222324
  1. #ifdef ENABLE_INFLUXDB
  2. #pragma once
  3. #ifndef INTERFACE_INFLUXDB_H
  4. #define INTERFACE_INFLUXDB_H
  5. #include <string>
  6. #include <map>
  7. #include <functional>
  8. // Interface to InfluxDB v1.x
  9. void InfluxDBInit(std::string _influxDBURI, std::string _database, std::string _user, std::string _password);
  10. void InfluxDBPublish(std::string _measurement, std::string _key, std::string _content, long int _timeUTC);
  11. // Interface to InfluxDB v2.x
  12. void InfluxDB_V2_Init(std::string _uri, std::string _bucket, std::string _org, std::string _token);
  13. void InfluxDB_V2_Publish(std::string _measurement, std::string _key, std::string _content, long int _timeUTC);
  14. void InfluxDBdestroy();
  15. #endif //INTERFACE_INFLUXDB_H
  16. #endif //ENABLE_INFLUXDB