Skip to content

Commit 341d620

Browse files
committed
Add FAQ item for recovering from DeepSleep
1 parent ae0d8ff commit 341d620

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

doc/faq/readme.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ For reference:
136136

137137
Time-wait PCB state helps TCP not confusing two consecutive connections with the
138138
same (s-ip,s-port,d-ip,d-port) when the first is already closed but still
139-
having duplicate packets lost in internet arriving later during the second.
139+
having duplicate packets lost in internet arriving later during the second.
140140
Artificially clearing them is a workaround to help saving precious heap.
141141

142142
The following lines are compatible with both lwIP versions:
@@ -147,7 +147,7 @@ The following lines are compatible with both lwIP versions:
147147
struct tcp_pcb;
148148
extern struct tcp_pcb* tcp_tw_pcbs;
149149
extern "C" void tcp_abort (struct tcp_pcb* pcb);
150-
150+
151151
void tcpCleanup (void) {
152152
while (tcp_tw_pcbs)
153153
tcp_abort(tcp_tw_pcbs);
@@ -168,3 +168,13 @@ This script is also used to manage uncommon options that are currently not
168168
available in the IDE menu.
169169

170170
`Read more <a05-board-generator.rst>`__.
171+
172+
My WiFi won't reconnect after deep sleep using ``WAKE_RF_DISABLED``
173+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
174+
175+
When you implement deep sleep using ``WAKE_RF_DISABLED``, this forces what
176+
appears to be a bare metal disabling of WiFi functionality, which is not
177+
restored using ``WiFi.forceSleepWake()`` or ``WiFi.mode(WIFI_STA)``. If you need
178+
to implement deep sleep with ``WAKE_RF_DISABLED`` and later connect to WiFi, you
179+
will need to implement an additional (short) deep sleep using
180+
``WAKE_RF_DEFAULT``.

0 commit comments

Comments
 (0)