2025-12-0200 Störung MQTT !!

This commit is contained in:
2025-12-02 22:24:03 +01:00
parent f3b32d1739
commit 7b0ba4db7c
4 changed files with 52 additions and 16 deletions

View File

@@ -7,7 +7,7 @@
#define SEALEVELPRESSURE_HPA (1013.25)
const float No_Val = 999.99;
const float No_Val = -999.99;
struct {

View File

@@ -1,12 +1,13 @@
#include "Adafruit_HTU21DF.h"
const float No_Valhtu = 999.99;
const float No_Valhtu = 0;
struct {
char temperature[15] = {0};
char humity[15] = {0};
float Temp = No_Valhtu;
float Feuchte = No_Valhtu;
bool Status = true;
} htu21Data;
Adafruit_HTU21DF htu = Adafruit_HTU21DF();
@@ -15,7 +16,7 @@ Adafruit_HTU21DF htu = Adafruit_HTU21DF();
void init_HTU21(){
if (!htu.begin()) {
Serial.println("Couldn't find sensor HUT21D!");
while (1);
htu21Data.Status = false;
}
Serial.println("HUT21D gefunden");
}