Skip to content

Commit 8a4fbcc

Browse files
committed
Extend watchdog time for ESP32 devices that support it
timeout to 1s for ESP8266 devices, but does not fully resolve issues
1 parent 479b245 commit 8a4fbcc

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

packages/airgradient_api_d1_mini.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ esphome:
5353
wifi: !lambda return to_string(-50);
5454

5555
http_request:
56+
timeout: 1s # Setting short to try to prevent watchdog reboots https://github.com/esphome/issues/issues/2853
5657
# Used to support POST request to send data to AirGradient
5758
# https://esphome.io/components/http_request.html
5859
verify_ssl: false # Must be explicityly set to false when using Arduino framework

packages/airgradient_api_d1_mini_no_sgp41.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ esphome:
5151
wifi: !lambda return to_string(-50);
5252

5353
http_request:
54+
timeout: 1s # Setting short to try to prevent watchdog reboots https://github.com/esphome/issues/issues/2853
5455
# Used to support POST request to send data to AirGradient
5556
# https://esphome.io/components/http_request.html
5657
verify_ssl: false # Must be explicityly set to false when using Arduino framework

packages/airgradient_api_esp32-c3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ http_request:
5858
# Used to support POST request to send data to AirGradient
5959
# https://esphome.io/components/http_request.html
6060
verify_ssl: false # Must be explicityly set to false when using Arduino framework
61+
watchdog_timeout: 30s # Slow response from API server can cause watchdog to reboot device

packages/airgradient_api_esp32-c3_dual_pms5003t.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ http_request:
9292
# Used to support POST request to send data to AirGradient
9393
# https://esphome.io/components/http_request.html
9494
verify_ssl: false # Must be explicityly set to false when using Arduino framework
95+
watchdog_timeout: 30s # Slow response from API server can cause watchdog to reboot device

0 commit comments

Comments
 (0)