/** * QueryParams Example code for InfluxDBClient library for Arduino. * * This example demonstrates querying using parameters inserted into the Flux query. We select WiFi signal level values bellow a certain threshold. * WiFi signal is measured and stored in BasicWrite and SecureWrite examples. * * Demonstrates connection to any InfluxDB instance accesible via: * - InfluxDB 2 Cloud at https://cloud2.influxdata.com/ (certificate is preconfigured) * * Enter WiFi and InfluxDB parameters below **/ #if defined(ESP32) #include WiFiMulti wifiMulti; #define DEVICE "ESP32" #elif defined(ESP8266) #include ESP8266WiFiMulti wifiMulti; #define DEVICE "ESP8266" #endif #include #include // WiFi AP SSID #define WIFI_SSID "SSID" // WiFi password #define WIFI_PASSWORD "PASSWORD" // InfluxDB v2 server url, e.g. https://eu-central-1-1.aws.cloud2.influxdata.com (Use: InfluxDB UI -> Load Data -> Client Libraries) // InfluxDB 1.8+ (v2 compatibility API) server url, e.g. http://192.168.1.48:8086 #define INFLUXDB_URL "server-url" // InfluxDB v2 server or cloud API authentication token (Use: InfluxDB UI -> Load Data -> Tokens ->