Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Serial monitor is blocked during OTA (Read 1515 times)
Brain_Kiel
Newbies
*
Offline


Posts: 4
Joined: Sep 18th, 2020
Serial monitor is blocked during OTA
Mar 1st, 2023 at 10:05am
Print Post  
Hi there,
when providing serial infos during an update over the air (ESP32 used), the serial monitor shows the data only after update is done.

Sample code:
Code (C++)
Select All
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total)
{
	static uint8_t lastProgress = 0;

	if ((progress / (total / 100)) != lastProgress)
	{
#ifdef MAIN_DEBUG
		Serial.printf("-> Progress: %u%%\r", (progress / (total / 100)));
		Serial.println("");
#endif
		lastProgress = (progress / (total / 100));
		esp_task_wdt_reset();
	}

	String pro = String(progress / (total / 100)) + "%";
	int progressbar = (progress / (total / 100));
});
 



The progress percentage shows up "as batch" before the ESP restarts.

Best regards
Brain
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2350
Joined: Feb 13th, 2019
Re: Serial monitor is blocked during OTA
Reply #1 - Mar 2nd, 2023 at 2:48pm
Print Post  
Thanks for the report.

Can you try the latest version (23.0220.4) from the top of the below board, which should resolve the issue:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Brain_Kiel
Newbies
*
Offline


Posts: 4
Joined: Sep 18th, 2020
Re: Serial monitor is blocked during OTA
Reply #2 - Mar 2nd, 2023 at 3:46pm
Print Post  
It seems to work.
BTW - the output from 'Micro Build' is unblocked as well now.
In the previous release it stopped after 'Uploading...to...'
'Sending invitation...', 'Authentification...' etc. appeared only when OTA finished.

Thanks for the quick fix (..and the nice job you're doing in general).

BR Brain
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint