Commit 145cd2b
committed
[BT] Application level Watchdog Timer to avoid scan_evt timeout
Implement a BLE scan watchdog to bypass the problem related to the BLE scan hang scan_evt timeout
This is a bypass solution to espressif/arduino-esp32#5860
The watchdog will restart the ESP if no new BLE messages has been added to the queue following:
checked every 120s
if we are after the last BLE message time + the BLE scan interval for passive
if the process is not locked by an OTA update or other operation
We restart the ESP
We also remove the WDT0 enable and disable functions.1 parent 95896e0 commit 145cd2b
2 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
104 | 121 | | |
105 | 122 | | |
106 | 123 | | |
| |||
707 | 724 | | |
708 | 725 | | |
709 | 726 | | |
710 | | - | |
711 | 727 | | |
712 | 728 | | |
713 | 729 | | |
| |||
723 | 739 | | |
724 | 740 | | |
725 | 741 | | |
726 | | - | |
727 | 742 | | |
728 | 743 | | |
729 | 744 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1617 | 1617 | | |
1618 | 1618 | | |
1619 | 1619 | | |
| 1620 | + | |
1620 | 1621 | | |
1621 | 1622 | | |
1622 | 1623 | | |
| |||
0 commit comments