![]() PointDevice.addField("rssi", WiFi.RSSI()) It consists of a measurement name (like a table name), tags (which labels data) and fields ( the values to store): // Define data point in the measurement named 'device_status` A single row of data is represented by the Point class. InfluxDBClient client(INFLUXDB_URL, INFLUXDB_ORG, INFLUXDB_BUCKET, INFLUXDB_TOKEN) InfluxDB 2 bucket name (Use: InfluxDB UI -> Load Data -> Buckets) InfluxDB 2 organization name or id (Use: InfluxDB UI -> Settings -> Profile -> ) InfluxDB 2 server or cloud API authentication token (Use: InfluxDB UI -> Load Data -> Tokens -> ) (Use: InfluxDB UI -> Load Data -> Client Libraries) Table of contentsĪfter setting up an InfluxDB 2 server, first define connection parameters and a client instance: // InfluxDB 2 server url, e.g. This library doesn't support using those devices as a peripheral. ESP32 with Arduino core for the ESP32 at least version 1.0.3.ESP8266 with Arduino core for ESP8266 at least version 2.7.4.This is a new implementation and the API, original API is still supported. Library supports both InfluxDB 2 and InfluxDB 1. ![]() ![]() It also allows setting data in various formats, automatically escapes special characters and offers specifying timestamp in various precisions. The library supports authentication, secure communication over TLS, batching, automatic retrying on server back-pressure and connection failure. Simple Arduino client for writing and reading data from InfluxDB, no matter whether it is a local server or InfluxDB Cloud. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |