diff --git a/include/mcp9808.h b/include/mcp9808.h index 441016c..7a694b4 100644 --- a/include/mcp9808.h +++ b/include/mcp9808.h @@ -36,7 +36,7 @@ void init_MCP9808(){ F_MCP9808 = false; } - Serial.println("Found MCP9808!"); + //Serial.println("Found MCP9808!"); tempsensor.setResolution(3); // sets the resolution mode of reading, the modes are defined in the table bellow: // Mode Resolution SampleTime // 0 0.5°C 30 ms diff --git a/include/mess_Ub_old.h b/include/mess_Ub_old.h index fe70d67..5b54258 100644 --- a/include/mess_Ub_old.h +++ b/include/mess_Ub_old.h @@ -20,6 +20,6 @@ float getBattery(float kor = 1.000) valA0= valA0 / 1024; valA0 = valA0 * kor; dtostrf(valA0,7,2,floatString); - Serial.printf("Batterie:\t\t %s V\n", floatString); + Serial.printf("Batterie:\t\t%s V\n", floatString); return valA0; } \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 0dce0ff..e967d73 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,7 +28,6 @@ PubSubClient client(espClient); //#include #include -//#include #include #include @@ -102,8 +101,8 @@ void setup() { #endif if (!F_ADS1115 == true){ AKKU = getBattery(korectur); // ca. 170 ms - Serial.println("ALTE UB MESSUNG:"); - Serial.println(AKKU); + /* Serial.print("ALTE UB MESSUNG:\t\t"); + Serial.print(AKKU); Serial.println(" V"); */ } else{ MessungADS(); @@ -240,7 +239,7 @@ void setup_wifi() { endTime = millis(); unsigned long Pause = stoerung -((endTime - startTime) * 1000); // Pause Serial.println(); - Serial.println("STÖRUNG WiFi."); + Serial.print("STÖRUNG WiFi!!!\t"); Serial.print("Ich gehe für ca. "); Serial.print(Pause/1000/1000/60); Serial.println( " Minuten schlafen."); ESP.deepSleep(Pause, WAKE_NO_RFCAL); // Pause delay(100); @@ -292,7 +291,7 @@ void reconnect() { Serial.println(" try again in 5 seconds"); // Wait 5 seconds before retrying delay(5000); - ESP.restart(); + // } } }