From f2b578a70820c829fcd3102e6be96a262903c27e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Krac=C3=ADk?= Date: Wed, 12 Jun 2019 00:31:36 +0200 Subject: [PATCH] Verbose messages --- ZPA_elektromer_UARTtest.ino | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ZPA_elektromer_UARTtest.ino b/ZPA_elektromer_UARTtest.ino index 7b1c7a7..7fc083d 100644 --- a/ZPA_elektromer_UARTtest.ino +++ b/ZPA_elektromer_UARTtest.ino @@ -9,15 +9,19 @@ const char* password = "..."; void setup() { // put your setup code here, to run once: Serial.begin(115200); + Serial.println("Booting..."); WiFi.mode(WIFI_STA); + Serial.print("Wifi connect... "); WiFi.begin(ssid, password); while (WiFi.waitForConnectResult() != WL_CONNECTED) { Serial.println("Connection Failed! Rebooting..."); delay(5000); ESP.restart(); } + Serial.println("Connected"); + Serial.print("Configure OTA... "); ArduinoOTA .onStart([]() { String type; @@ -44,9 +48,15 @@ void setup() { else if (error == OTA_END_ERROR) Serial.println("End Failed"); }); - ArduinoOTA.begin(); + Serial.println("OK"); + Serial.print("Starting OTA... "); + ArduinoOTA.begin(); + Serial.println("OK"); + + Serial.print("Configure Reading serial port... "); Serial2.begin(300, SERIAL_7E1, 36, 4); + Serial.println("OK"); Serial.println("Test ZPA elektro"); Serial.println("================");