diff --git a/include/mess_BMP280.h b/include/mess_BMP280.h index 4f07b91..a9de9b0 100644 --- a/include/mess_BMP280.h +++ b/include/mess_BMP280.h @@ -22,7 +22,7 @@ struct { void Init_BMP280(){ bool status = bmp.begin(0x76); 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); } /* Serial.print("SensorID was: 0x"); Serial.println(bmp.sensorID(),16); diff --git a/platformio.ini b/platformio.ini index a6a4bec..80bf8a6 100644 --- a/platformio.ini +++ b/platformio.ini @@ -60,7 +60,7 @@ build_flags = ${env.build_flags} -DDNS=\"192.168.2.1\" -DKMYIP=\"192.168.2.80\" -Dmqtt_server=\"hjkmqtt.dedyn.io\" - -Dmqtt_port=8883 + -Dmqtt_port=61883 -DTERROR=20 -DTLOWBATT=60 -DTINTERVAL=10 diff --git a/src/main.cpp b/src/main.cpp index 3ca25ce..b9e491e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,10 +22,10 @@ void verifyFingerprint(); void callback(char* topic1, byte* payload, unsigned int length); void pulse_pin(uint8_t pin); -WiFiClientSecure espClient; +WiFiClient espClient; PubSubClient client(espClient); -//#include +#include #include @@ -109,8 +109,8 @@ void setup() { //digitalWrite(BUILTIN_LED, HIGH); //Serial.print("STATUS (Systemmeldung): "); Serial.println(SystemStatus); #if (MQTT == 0) - //init_HTU21(); - //Init_BMP280(); + init_HTU21(); + Init_BMP280(); initADS(); init_MCP9808(); #endif