Verbose messages
This commit is contained in:
		@@ -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("================");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user