Visual Micro
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Visual Studio 2017, 2019, 2022 >> Post Build Event for OTA in 1707.14.9?
https://www.visualmicro.com/forums/YaBB.pl?num=1500161928

Message started by goj immypi on Jul 16th, 2017 at 12:38am

Title: Post Build Event for OTA in 1707.14.9?
Post by goj immypi on Jul 16th, 2017 at 12:38am
Greetings-

I followed the instructions on setting up the ESP8266 for OTA programming using the Arduino IDE: https://randomnerdtutorials.com/esp8266-ota-updates-with-arduino-ide-over-the-air/

However I'd really prefer to program with VisualMicro in VisualStudio. I tried to add a "Post Build Event" to call the python script that sends OTA code to the ESP8266. I can do this successfully from a DOS prompt, however it seems nothing happens in VisualStudio at build time. Its like the setting is just ignored: no error, no additional output. I was wondering if the Build Events are implemented for a VisualMicro project?

I saw some older posts that build events were not supported, however this more recent page indicates they are: http://www.visualmicro.com/post/2017/03/20/Arduino-Custom-Build-Events.aspx

I am using VisualMicro 1707.14.9 installed just today. VisualStudio is:

Microsoft Visual Studio Enterprise 2017
Version 15.2 (26430.15) Release
VisualStudio.15.Release/15.2.0+26430.15
Microsoft .NET Framework
Version 4.7.02046

I have more details in my blog post here: https://gojimmypi.blogspot.com/2017/07/esp8266-ota-water-pressure-flow-monitor.html

Thanks.

p.s. the forum search returns nothing for "build events" (without quotes)

Post-Build-Event.png (28 KB | )

Title: Re: Post Build Event for OTA in 1707.14.9?
Post by Visual Micro on Jul 16th, 2017 at 12:48am
Hi

The forum is for issues the main site for docs.

Visual micro will do the ota. Follow the arduino ide setup guide and select your ip address from the list or add an ip address manually and add a board.txt to the project with the port, auth, password etc.

http://www.visualmicro.com/page/esp8266.aspx

Title: Re: Post Build Event for OTA in 1707.14.9?
Post by goj immypi on Jul 16th, 2017 at 1:14am
AHA! Thanks so much for your prompt reply! It works! :)

I did not notice that the dropdown for serial port allowed text to be typed there. Good that there's note about pressing ENTER, too. 

That's really a quite cool feature.  8-)

Title: Re: Post Build Event for OTA in 1707.14.9?
Post by Visual Micro on Jul 17th, 2017 at 7:39pm
Great. Thanks for the update.

ps: I just replied to your email(s)

Visual Micro » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2022. All Rights Reserved.