Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA example doesn't consider the watchdog #10707

Open
1 task done
hajosc opened this issue Dec 10, 2024 · 0 comments
Open
1 task done

OTA example doesn't consider the watchdog #10707

hajosc opened this issue Dec 10, 2024 · 0 comments
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@hajosc
Copy link

hajosc commented Dec 10, 2024

Board

all ESP32

Device Description

Any ESP32

Hardware Configuration

n/a

Version

latest master (checkout manually)

IDE Name

Arduino IDE

Operating System

any

Flash frequency

any

PSRAM enabled

yes

Upload speed

OTA

Description

A lot of people across the Internet complain about ArduinoOTA failing with timeouts. They reduce code sizes, increase transfer speeds over WiFi and have random success thereafter. I believe one major reason is the watchdog biting them.
I suggest to add esp_task_wdt_reset(); to ArduinoOTA.onProgress() in the example.

Sketch

ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
			esp_task_wdt_reset(); // reset watchdog
		});

Debug Message

.

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.
@hajosc hajosc added the Status: Awaiting triage Issue is waiting for triage label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

1 participant