From 49ebf04b4835ba791c1b89d07becc61289450296 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Sat, 18 Apr 2020 12:14:18 +0200 Subject: [PATCH 1/2] add keller config --- esp8266-sensornode.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esp8266-sensornode.ino b/esp8266-sensornode.ino index 3e9ced0..74c33e7 100644 --- a/esp8266-sensornode.ino +++ b/esp8266-sensornode.ino @@ -26,12 +26,12 @@ rtcStore_t rtcStore; /* CONFIGURATION OPTIONS */ #ifndef NODENAME // #define NODENAME "env-huzzah-01" /* IMPORTANT: CHANGE FOR EACH DEVICE */ -// #define NODENAME "env-keller" /* IMPORTANT: CHANGE FOR EACH DEVICE */ -#define NODENAME "env-TODO" /* IMPORTANT: CHANGE FOR EACH DEVICE */ +#define NODENAME "env-keller" /* IMPORTANT: CHANGE FOR EACH DEVICE */ +// #define NODENAME "env-TODO" /* IMPORTANT: CHANGE FOR EACH DEVICE */ #endif #ifndef BOARD -#define BOARD 0 /* IMPORTANT: select one of the BOARD_* types */ +#define BOARD 3 /* IMPORTANT: select one of the BOARD_* types */ #endif #define DB_HOSTNAME "influx-iot.fra80" From 33355b060da23ff0737b3c9706bf00d95775fb03 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Sat, 26 Nov 2022 14:59:15 +0100 Subject: [PATCH 2/2] Re-configure for central InfluxDB --- esp8266-sensornode.ino | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/esp8266-sensornode.ino b/esp8266-sensornode.ino index 74c33e7..0a39a3d 100644 --- a/esp8266-sensornode.ino +++ b/esp8266-sensornode.ino @@ -34,7 +34,7 @@ rtcStore_t rtcStore; #define BOARD 3 /* IMPORTANT: select one of the BOARD_* types */ #endif -#define DB_HOSTNAME "influx-iot.fra80" +#define DB_HOSTNAME "influx.jtbx.de" #define DB_PASSWD "c2Vuc29yczpTZW5zb3JzLXcuaW5mbHV4QGhvbWU" // BasicAuth String #if BOARD == BOARD_HUZZAH @@ -62,7 +62,7 @@ float tempOffset = +0.0; float humiOffset = +0.0; const char* host = DB_HOSTNAME; -const int httpPort = 8086; +const int httpPort = 65086; const char* wlan_ssid = "WLAN-Bey-IoT"; const char* wlan_passwd = "IoT-Fra80"; @@ -259,7 +259,8 @@ void setup() { INFO_PRINT("[INFO ] connecting to "); INFO_PRINT(host); - WiFiClient client; + WiFiClientSecure client; + client.setInsecure(); if (client.connect(host, httpPort)) { INFO_PRINTLN(" > success");