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 Post Build Event for OTA in 1707.14.9? (Read 1513 times)
goj immypi
Junior Member
**
Offline


Posts: 14
Joined: Jan 20th, 2017
Post Build Event for OTA in 1707.14.9?
Jul 15th, 2017 at 11:38pm
Print Post  
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-ai...

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.h...

Thanks. 

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

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Post Build Event for OTA in 1707.14.9?
Reply #1 - Jul 15th, 2017 at 11:48pm
Print Post  
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
  
Back to top
WWW  
IP Logged
 
goj immypi
Junior Member
**
Offline


Posts: 14
Joined: Jan 20th, 2017
Re: Post Build Event for OTA in 1707.14.9?
Reply #2 - Jul 16th, 2017 at 12:14am
Print Post  
AHA! Thanks so much for your prompt reply! It works! Smiley 

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.  Cool
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Post Build Event for OTA in 1707.14.9?
Reply #3 - Jul 17th, 2017 at 6:39pm
Print Post  
Great. Thanks for the update. 

ps: I just replied to your email(s)
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint