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 OTA port number {network.port} missing (Read 2311 times)
Smiley999
Newbies
*
Offline


Posts: 2
Joined: Nov 11th, 2016
OTA port number {network.port} missing
Jun 8th, 2018 at 1:39pm
Print Post  
Hello,

Recently rebuilt PC, reinstalled everything and now my OTA upload fails with this error:

Uploader started for board ESPDuino (ESP-13 Module)
Upload method will be: bootloader
Uploading via Bootloader 
Port Properties (network)
python.exe /tools/espota.py -i "192.168.1.105" -p "{network.port}" "--auth=" -f C:\Users\Dad\AppData\Local\Temp\VMBuilds\GARAGE~1\ES885B~1\Release/GARAGE~1.BIN
The uploader process failed
Usage: espota.py [options]
espota.py: error: option -p: invalid integer value: '{network.port}'

COM upload works fine.

I am using VS2015.  Not entirely sure which version of vMicro as can't find the v number, but installed within the last month.

(Also, not sure if important but I am actually using ESP-07S  (4MB) but there isn't an option for that so used ESP-12 and ESP-13 options which are also 4MB)

Can anyone tell me how to set {network.port} ?

Thanks
Miles

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA port number {network.port} missing
Reply #1 - Jun 8th, 2018 at 2:07pm
Print Post  
Hi,

Previously I think you had apply bonjour installed. Your sketch will configure mDNS and that is what bonjour looks for. The port is set in your code along with your authorization/password settings

You don't need apply bonjour. you can enter the IP manually as you have done but you also need to create a local board.txt to state the port and auth settings.

Put this in a board.txt
Code (C++)
Select All
 # local project board.txt overrides
  network.password=123
  network.auth_upload=yes
  network.port=8266 



or

Code (C++)
Select All
 # local project board.txt overrides
 # network.password=123
  network.auth_upload=no
  network.port=8266 





See the ESP8266 page for more info

Quote:
(Also, not sure if important but I am actually using ESP-07S  (4MB) but there isn't an option for that so used ESP-12 and ESP-13 options which are also 4MB)


You will have used board manager to install your hardware from a url or your choosing. Sounds like you have installed the wrong core. Uninstall it then use the Auto-Discovery node at top of board manager to install the esp8266 community core.
« Last Edit: Jun 8th, 2018 at 2:08pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Smiley999
Newbies
*
Offline


Posts: 2
Joined: Nov 11th, 2016
Re: OTA port number {network.port} missing
Reply #2 - Jun 8th, 2018 at 3:31pm
Print Post  
Hi 

Board.txt worked! Many thanks for the speedy reply.

Re ESP-07S, I'd already installed ESP8266 Community 2.4.1.  There is no option for that board, but it's no big deal as ESP-12 and 13 options seem to work fine, I think it's probably just the aerial that is different as I wanted the external type.

Thanks again
m
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: OTA port number {network.port} missing
Reply #3 - Jun 8th, 2018 at 3:45pm
Print Post  
Great. thanks for the update. Yes external Arial is better, I should have ordered same.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint