Verbose messages
This commit is contained in:
parent
99890dc48c
commit
f2b578a708
@ -9,15 +9,19 @@ const char* password = "...";
|
|||||||
void setup() {
|
void setup() {
|
||||||
// put your setup code here, to run once:
|
// put your setup code here, to run once:
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
|
Serial.println("Booting...");
|
||||||
WiFi.mode(WIFI_STA);
|
WiFi.mode(WIFI_STA);
|
||||||
|
|
||||||
|
Serial.print("Wifi connect... ");
|
||||||
WiFi.begin(ssid, password);
|
WiFi.begin(ssid, password);
|
||||||
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
|
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
|
||||||
Serial.println("Connection Failed! Rebooting...");
|
Serial.println("Connection Failed! Rebooting...");
|
||||||
delay(5000);
|
delay(5000);
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
}
|
}
|
||||||
|
Serial.println("Connected");
|
||||||
|
|
||||||
|
Serial.print("Configure OTA... ");
|
||||||
ArduinoOTA
|
ArduinoOTA
|
||||||
.onStart([]() {
|
.onStart([]() {
|
||||||
String type;
|
String type;
|
||||||
@ -44,9 +48,15 @@ void setup() {
|
|||||||
else if (error == OTA_END_ERROR) Serial.println("End Failed");
|
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);
|
Serial2.begin(300, SERIAL_7E1, 36, 4);
|
||||||
|
Serial.println("OK");
|
||||||
|
|
||||||
Serial.println("Test ZPA elektro");
|
Serial.println("Test ZPA elektro");
|
||||||
Serial.println("================");
|
Serial.println("================");
|
||||||
|
Loading…
Reference in New Issue
Block a user