Skip to content

OTA example doesn't consider the watchdog #10707

Open
@hajosc

Description

@hajosc

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.

Metadata

Metadata

Assignees

Labels

Status: Needs investigationWe need to do some research before taking next steps on this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions