/** * Basic Write Example code for InfluxDBClient library for Arduino * Data can be immediately seen in a InfluxDB UI: wifi_status measurement * Enter WiFi and InfluxDB parameters below * * Measures signal level of the actually connected WiFi network * This example supports only InfluxDB running from unsecure (http://...) * For secure (https://...) or Influx Cloud 2 use SecureWrite example **/ #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 ->