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 Set HOST_PORT (-P) on espota.exe from Visual Studio/VM (Read 1897 times)
Mads
Newbies
*
Offline


Posts: 6
Joined: May 15th, 2020
Set HOST_PORT (-P) on espota.exe from Visual Studio/VM
Nov 28th, 2020 at 10:58am
Print Post  
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? 

espota.exe -i "192.168.107.249" -p "3232" -P "17777" "--auth=admin" -f "C:\Temp\GPSNeo6M_MQTT.ino.bin"


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


Posts: 2144
Joined: Feb 13th, 2019
Re: Set HOST_PORT (-P) on espota.exe from Visual Studio/VM
Reply #1 - Nov 28th, 2020 at 2:11pm
Print Post  
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
Select All
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
Joined: May 15th, 2020
Re: Set HOST_PORT (-P) on espota.exe from Visual Studio/VM
Reply #2 - Nov 29th, 2020 at 11:28am
Print Post  
Thank You, that did the trickĀ  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint