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 Error on ESP8266 OTA in VisualStudio 2017 (Read 1116 times)
Mr-Light
Newbies
*
Offline


Posts: 2
Joined: Oct 7th, 2017
Error on ESP8266 OTA in VisualStudio 2017
Oct 7th, 2017 at 3:31pm
Print Post  
Hi,

I'm trying to use OTA to upload my sketch out of VisualStudio 2017.
I have a working sketch and even the OTA Upload is possible when I use the Arduino IDE to upload.
When I use the same sketch in VMicro the ESP is not detected. (Bonjour is not installed) To overcome this I have put in the (correct) IP-Adr. into the port box. When I now hit upload i get the following error:

Code
Select All
Uploading 'wlanManager_n_OTA' to 'NodeMCU 1.0 (ESP-12E Module)' using '192.168.178.40'
The uploader returned an error
Usage: espota.py [options]
espota.py: error: option -p: invalid integer value: '{network.port}'
 



I can't find a solution for that. Running VS as Admin or disabling the firewall doesn't help.

VMicro Version is: 1709.6.0
Python 2.7 is installed and in the path.

I'm confused about the error message. "Invalid integer..."

Best regards,
  MrLight
« Last Edit: Oct 7th, 2017 at 3:35pm by Mr-Light »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error on ESP8266 OTA in VisualStudio 2017
Reply #1 - Oct 7th, 2017 at 3:47pm
Print Post  
Hi,

The error is because you have not provided the IP port that the esp is waiting on. You will see that your esp code will probably use the default esp example of 8266

You should also provide authentication setting, especially if you configure a password in your esp code.

Both the port and password can be supplied in a board.txt that can be added to your project. You will see an example of how to do that at the end of the esp8266 documentation page on visualmicro.com

It's something like this:-

Code
Select All
  network.port=8266 



and with password like this:-

Code
Select All
  network.port=8266
  network.password=123
  network.auth_upload=yes
 



tip: when you make changes to a board.txt click save before build/upload. VS does auto save but after the build/upload has completed ( can be confusing ).
  
Back to top
IP Logged
 
Mr-Light
Newbies
*
Offline


Posts: 2
Joined: Oct 7th, 2017
Re: Error on ESP8266 OTA in VisualStudio 2017
Reply #2 - Oct 7th, 2017 at 3:53pm
Print Post  
ahhh... Thank you very much for that fast answer!

Everything is working fine now. I have always tried to use IP:port... 

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error on ESP8266 OTA in VisualStudio 2017
Reply #3 - Oct 7th, 2017 at 4:07pm
Print Post  
Great thanks for the update.

ip:port, that's a natural idea  Smiley  I guess I should support that. Will try to add to future releases
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint