Skip to content

timeout: ArduinoOTA over VPN #8642

Closed
Closed
@micha6554

Description

@micha6554

Board

ESP32

Device Description

ESP32

Hardware Configuration

none

Version

v2.0.13

IDE Name

Arduino IDE 2.2.1

Operating System

Windows

Flash frequency

80

PSRAM enabled

no

Upload speed

115200

Description

I am writing to report an issue with
the ArduinoOTA library when using it over a VPN connection.
Specifically, the OTA update process tends to fail approximately 90% of
the time when initiated through a VPN connection.

To address this problem, I made a modification in the ArduinoOTA.cpp
file. I increased the OTA timeout value from 1000 to 2000 milliseconds
by applying the following patch:

-, _ota_timeout(1000)
+, _ota_timeout(2000)

This change has resulted in a significant improvement in the OTA
functionality, even when used over a VPN connection. The increased
timeout appears to have provided the necessary buffer to ensure
successful updates under these conditions.

Best regards,

Michael Süß

Sketch

none

Debug Message

OTA Error

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions