/** * Buckets management Example code for InfluxDBClient library for Arduino * Enter WiFi and InfluxDB parameters below * * This example supports only InfluxDB running from unsecure (http://...) * For secure (https://...) or Influx Cloud 2 connection check SecureWrite example to * see how connect using secured connection (https) **/ #if defined(ESP32) #include WiFiMulti wifiMulti; #define DEVICE "ESP32" #elif defined(ESP8266) #include ESP8266WiFiMulti wifiMulti; #define DEVICE "ESP8266" #endif #include // WiFi AP SSID #define WIFI_SSID "ssid" // WiFi password #define WIFI_PASSWORD "password" // InfluxDB server url. Don't use localhost, always server name or ip address. // E.g. http://192.168.1.48:8086 (In InfluxDB 2 UI -> Load Data -> Client Libraries), #define INFLUXDB_URL "influxdb-url" // InfluxDB 2 server or cloud API authentication token (Use: InfluxDB UI -> Load Data -> Tokens ->