Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Set HOST_PORT (-P) on espota.exe from Visual Studio/VM (Read 94 times)
Mads
Newbies
*
Offline



Posts: 6
Set HOST_PORT (-P) on espota.exe from Visual Studio/VM
Nov 28th, 2020 at 10:58am
 
Hi,

I'm using OTA programming for my ESP32. I have moved my ESP32 to another VLAN, so to continue uploading OTA I need to be able to set the HOST_PORT. But where do I add this (bold text), so I can continue to use "Build and Upload" from Visual Studio?

C:\Users\User\AppData\Local\arduino15\packages\esp32\hardware\esp32\1.0.4\tools\
espota.exe -i "192.168.107.249" -p "3232" -P "17777" "--auth=admin" -f "C:\Temp\GPSNeo6M_MQTT.ino.bin"


Regards,
Mads
Back to top
« Last Edit: Nov 28th, 2020 at 10:59am by Mads »  
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 611
Re: Set HOST_PORT (-P) on espota.exe from Visual Studio/VM
Reply #1 - Nov 28th, 2020 at 2:11pm
 
If you right click the project in solution explorer > Add > Local Board.txt

Then add the below entry: (a clone of the entry from platform.txt in this core, with your addition)
Code:
tools.esptool_py.network_cmd.windows="{runtime.platform.path}/tools/espota.exe" -P "17777" 



(Espota.exe doesn't specify the order in which the options are set... so putting at the start should work)
Back to top
 
 
IP Logged
 
Mads
Newbies
*
Offline



Posts: 6
Re: Set HOST_PORT (-P) on espota.exe from Visual Studio/VM
Reply #2 - Nov 29th, 2020 at 11:28am
 
Thank You, that did the trickĀ  Smiley
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print