Compare commits
No commits in common. "nodes/lsp31" and "master" have entirely different histories.
nodes/lsp3
...
master
|
@ -27,14 +27,14 @@ rtcStore_t rtcStore;
|
|||
#ifndef NODENAME
|
||||
// #define NODENAME "env-huzzah-01" /* IMPORTANT: CHANGE FOR EACH DEVICE */
|
||||
// #define NODENAME "env-keller" /* IMPORTANT: CHANGE FOR EACH DEVICE */
|
||||
#define NODENAME "env-lsp31" /* IMPORTANT: CHANGE FOR EACH DEVICE */
|
||||
#define NODENAME "env-TODO" /* IMPORTANT: CHANGE FOR EACH DEVICE */
|
||||
#endif
|
||||
|
||||
#ifndef BOARD
|
||||
#define BOARD 1 /* IMPORTANT: select one of the BOARD_* types */
|
||||
#define BOARD 0 /* IMPORTANT: select one of the BOARD_* types */
|
||||
#endif
|
||||
|
||||
#define DB_HOSTNAME "influx-iot.jtbx.de"
|
||||
#define DB_HOSTNAME "influx-iot.fra80"
|
||||
#define DB_PASSWD "c2Vuc29yczpTZW5zb3JzLXcuaW5mbHV4QGhvbWU" // BasicAuth String
|
||||
|
||||
#if BOARD == BOARD_HUZZAH
|
||||
|
@ -62,15 +62,15 @@ float tempOffset = +0.0;
|
|||
float humiOffset = +0.0;
|
||||
|
||||
const char* host = DB_HOSTNAME;
|
||||
const int httpPort = 65086;
|
||||
const int httpPort = 8086;
|
||||
|
||||
const char* wlan_ssid = "WLAN-Bey";
|
||||
const char* wlan_passwd = "AB25TB22JB06PB15";
|
||||
const char* wlan_ssid = "WLAN-Bey-IoT";
|
||||
const char* wlan_passwd = "IoT-Fra80";
|
||||
|
||||
#ifndef TEST
|
||||
String loggerName = NODENAME;
|
||||
const uint16_t sendInterval_sec = 180; /* 180 sec (3 min) */
|
||||
const uint8_t sampleAvgNum = 6; /* 6 (every 30 seconds) */
|
||||
const uint16_t sendInterval_sec = 1800; /* 1800 sec (30 min) */
|
||||
const uint8_t sampleAvgNum = 6; /* 6 (every 5 minutes) */
|
||||
const uint16_t sampleInterval_sec = sendInterval_sec / sampleAvgNum;
|
||||
String serviceUri = "/write?db=sensors";
|
||||
#else
|
||||
|
@ -259,8 +259,7 @@ void setup() {
|
|||
|
||||
INFO_PRINT("[INFO ] connecting to ");
|
||||
INFO_PRINT(host);
|
||||
WiFiClientSecure client;
|
||||
client.setInsecure();
|
||||
WiFiClient client;
|
||||
if (client.connect(host, httpPort)) {
|
||||
INFO_PRINTLN(" > success");
|
||||
|
||||
|
|
Loading…
Reference in a new issue