Hi !
Iām not sure why it would work with āhostnameā but not with IP address ?
Regarding the timeout, you can tune it with following in your platformio.ini:
upload_flags = --timeout=20
but I was not able to find the unit of the number (it looks like 20 give 200sec on my side butā¦)
You may try several times (on my setup it does not always work on 1st trial)
I guess you already did, but in the past I had trouble with firewall enabled on my laptopā¦
I actually canāt see that flag having ever worked with espota, as it doesnāt have a timeout parameter, and doesnāt look like it did (going back to the code from four years ago, anyway). Editing the sock2.settimeout(10) variables in espota.py seems to be the only way to extend the timeouts.
Thatās because the instructions are wrong⦠thatās the output for the ESP32 version of the espota tool, from when a common version was used, instead of the platform specific version. Iāve done PRs to fix that up (espressif8266 espota, espressif32 espota).
C:\Users\Peter\.platformio\packages\framework-arduinoespressif8266\tools>espota.py -h
Usage: espota.py [options]
Transmit image over the air to the esp8266 module with OTA support.
Options:
-h, --help show this help message and exit
Destination:
-i ESP_IP, --ip=ESP_IP
ESP8266 IP Address.
-I HOST_IP, --host_ip=HOST_IP
Host IP Address.
-p ESP_PORT, --port=ESP_PORT
ESP8266 ota Port. Default 8266
-P HOST_PORT, --host_port=HOST_PORT
Host server ota Port. Default random 10000-60000
Authentication:
-a AUTH, --auth=AUTH
Set authentication password.
Image:
-f FILE, --file=FILE
Image file.
-s, --spiffs Use this option to transmit a SPIFFS image and do not
flash the module.
Output:
-d, --debug Show debug output. And override loglevel with debug.
-r, --progress Show progress output. Does not work for ArduinoIDE
C:\Users\Peter\.platformio\packages\framework-arduinoespressif32\tools>espota.py -h
Usage: espota.py [options]
Transmit image over the air to the esp32 module with OTA support.
Options:
-h, --help show this help message and exit
Destination:
-i ESP_IP, --ip=ESP_IP
ESP32 IP Address.
-I HOST_IP, --host_ip=HOST_IP
Host IP Address.
-p ESP_PORT, --port=ESP_PORT
ESP32 ota Port. Default 3232
-P HOST_PORT, --host_port=HOST_PORT
Host server ota Port. Default random 10000-60000
Authentication:
-a AUTH, --auth=AUTH
Set authentication password.
Image:
-f FILE, --file=FILE
Image file.
-s, --spiffs Use this option to transmit a SPIFFS image and do not
flash the module.
Output:
-d, --debug Show debug output. And override loglevel with debug.
-r, --progress Show progress output. Does not work for ArduinoIDE
-t TIMEOUT, --timeout=TIMEOUT
Timeout to wait for the ESP32 to accept invitation
Is that can or canāt ping that IP Address? If itās canāt, you may have bigger problems, as that would suggest the device isnāt connected to you wifi, or responding to connections, hence the upload error is correct since the device isnāt responding.
still having the exact same issue of the opener once upgraded to the latest platformio coreā¦
is it a timeout problem?
I can do OTA with Arduino IDE no problem.