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 Arduino ESP8266 OTA problem (Read 2599 times)
Sylvain
Junior Member
**
Offline


Posts: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
Arduino ESP8266 OTA problem
Mar 12th, 2017 at 2:22pm
Print Post  
Hi

I have a problem with OTA python software,  Visual Micro don't pass the port number as parameter argument.

C:\Windows\system32>python.exe 0/tools/espota.py -i "192.168.1.125:8266" -p "{network.port}" "--auth=" -f C:\Users\bibi\AppData\Local\Temp\VMBuilds\OTALeds\ESP826~1\Debug/OTALED~1.BIN
Usage: espota.py [options]

espota.py: error: option -p: invalid integer value: '{network.port}'

if I run at command line with port option :

C:\Windows\system32>python.exe 0/tools/espota.py -i 192.168.1.175 -p 8266 --auth= -f C:\Users\bibi\AppData\Local\Temp\VMBuilds\OTALeds\ESP826~1\Debug/OTALED~1.BIN
....................

Thanks
Sylvain Bissonnette
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino ESP8266 OTA problem
Reply #1 - Mar 12th, 2017 at 2:40pm
Print Post  
Thanks for the post

You have two ways to provide port number

1) Follow the Esp8266/Arduino IDE guide and install Apple Bonjour for Windows. This will then auto discover the IP address along with the port number that it advertised by the Esp2866 mDNS. When you see the ip address listed automatically in the Arduino and Visual Micro ports lists then you know it's working.


2) If you have a Pro version of Visual Micro you can add a board.txt file to the project. Then you can specify network.port and network.auth, password etc. as required.

For more information please see the esp8266 page on visualmicro.com or esp8266 community wiki.



« Last Edit: Mar 12th, 2017 at 2:40pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Sylvain
Junior Member
**
Offline


Posts: 67
Location: Montreal, Canada
Joined: Nov 13th, 2014
Re: Arduino ESP8266 OTA problem
Reply #2 - Mar 12th, 2017 at 4:16pm
Print Post  
Hey thanks for the so fast reply !

Sylvain Bissonnette
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint