From c255826199a8719725adbe94d8ac9191575825c8 Mon Sep 17 00:00:00 2001 From: hans-jurgen Date: Sat, 28 Sep 2024 16:20:38 +0200 Subject: [PATCH] 2024-09-2700 --- include/mess_Ub.h | 2 +- include/mess_Ub_old.h | 3 ++- include/mess_htu21.h | 6 ++++-- platformio.ini | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/include/mess_Ub.h b/include/mess_Ub.h index 89f8829..17914c7 100644 --- a/include/mess_Ub.h +++ b/include/mess_Ub.h @@ -2,7 +2,7 @@ ADC_MODE(ADC_VDD); -const float MinimalSpannung = 2.85; +const float MinimalSpannung = 2.60; float korectur = 0.000913242; char floatString[15] = {0}; float AKKU; diff --git a/include/mess_Ub_old.h b/include/mess_Ub_old.h index 4ceed83..fe70d67 100644 --- a/include/mess_Ub_old.h +++ b/include/mess_Ub_old.h @@ -1,6 +1,7 @@ #include -const float MinimalSpannung = 2.85; +//const float MinimalSpannung = 2.85; +const float MinimalSpannung = 2.00; float korectur = 0.8870; char floatString[15] = {0}; float AKKU; diff --git a/include/mess_htu21.h b/include/mess_htu21.h index 36d9035..b992914 100644 --- a/include/mess_htu21.h +++ b/include/mess_htu21.h @@ -19,9 +19,11 @@ void init_HTU21(){ Serial.println("Couldn't find sensor HUT21D!"); SystemStatus = SystemStatus | HTU21noReady; + }else{ + F_HTU_21D = true; + Serial.println("HUT21D gefunden"); } - F_HTU_21D = true; - Serial.println("HUT21D gefunden"); + } void read_HTU21D() { diff --git a/platformio.ini b/platformio.ini index e958a70..6f1c770 100644 --- a/platformio.ini +++ b/platformio.ini @@ -37,12 +37,12 @@ build_flags = build_flags = ${env.build_flags} -DDEBUG=0 -DNOADS=0 - -DNAME=\"WETTERSTATION\" + -DNAME=\"WETTERSTATION2\" -DSTASSID=\"MagentaWLAN-RGDO\" -DSTAPSK=\"93329248424922704583\" -DGATEWAY=\"192.168.127.1\" -DDNS=\"192.168.127.1\" - -DKMYIP=\"192.168.127.40\" + -DKMYIP=\"192.168.127.45\" -Dmqtt_server=\"hjkmqtt.dedyn.io\" -Dmqtt_port=61883 -DTERROR=5