2024-10-0600 ERROR SENSOREN

This commit is contained in:
hans-jurgen 2024-10-06 18:11:55 +02:00
parent 6f21fe7252
commit dffa5d080c
3 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ struct {
void Init_BMP280(){ void Init_BMP280(){
bool status = bmp.begin(0x76); bool status = bmp.begin(0x76);
if (!status) { if (!status) {
Serial.println("Could not find a valid BME280 sensor, check wiring!"); Serial.println("Could not find a valid BMP280 sensor, check wiring!");
while (1); while (1);
} }
/* Serial.print("SensorID was: 0x"); Serial.println(bmp.sensorID(),16); /* Serial.print("SensorID was: 0x"); Serial.println(bmp.sensorID(),16);

View File

@ -60,7 +60,7 @@ build_flags = ${env.build_flags}
-DDNS=\"192.168.2.1\" -DDNS=\"192.168.2.1\"
-DKMYIP=\"192.168.2.80\" -DKMYIP=\"192.168.2.80\"
-Dmqtt_server=\"hjkmqtt.dedyn.io\" -Dmqtt_server=\"hjkmqtt.dedyn.io\"
-Dmqtt_port=8883 -Dmqtt_port=61883
-DTERROR=20 -DTERROR=20
-DTLOWBATT=60 -DTLOWBATT=60
-DTINTERVAL=10 -DTINTERVAL=10

View File

@ -22,10 +22,10 @@ void verifyFingerprint();
void callback(char* topic1, byte* payload, unsigned int length); void callback(char* topic1, byte* payload, unsigned int length);
void pulse_pin(uint8_t pin); void pulse_pin(uint8_t pin);
WiFiClientSecure espClient; WiFiClient espClient;
PubSubClient client(espClient); PubSubClient client(espClient);
//#include<mess_htu21.h> #include<mess_htu21.h>
#include <mess_BMP280.h> #include <mess_BMP280.h>
@ -109,8 +109,8 @@ void setup() {
//digitalWrite(BUILTIN_LED, HIGH); //digitalWrite(BUILTIN_LED, HIGH);
//Serial.print("STATUS (Systemmeldung): "); Serial.println(SystemStatus); //Serial.print("STATUS (Systemmeldung): "); Serial.println(SystemStatus);
#if (MQTT == 0) #if (MQTT == 0)
//init_HTU21(); init_HTU21();
//Init_BMP280(); Init_BMP280();
initADS(); initADS();
init_MCP9808(); init_MCP9808();
#endif #endif