VS Arduino
Visual Micro >> General Board >> Set HOST_PORT (-P) on espota.exe from Visual Studio/VM
https://www.visualmicro.com/forums/YaBB.pl?num=1606561103

Message started by Mads on Nov 28th, 2020 at 10:58am

Title: Set HOST_PORT (-P) on espota.exe from Visual Studio/VM
Post by Mads on 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

Title: Re: Set HOST_PORT (-P) on espota.exe from Visual Studio/VM
Post by Simon@Visual Micro on 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"[/code]

(Espota.exe doesn't specify the order in which the options are set... so putting at the start should work)

Title: Re: Set HOST_PORT (-P) on espota.exe from Visual Studio/VM
Post by Mads on Nov 29th, 2020 at 11:28am
Thank You, that did the trickĀ  :)

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.