Skip to content

Commit ae0d8ff

Browse files
committed
Clarify how to enable WiFi after DeepSleep
1 parent 51daecc commit ae0d8ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/libraries.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ SPI
4141

4242
SPI library supports the entire Arduino SPI API including transactions, including setting phase (CPHA). Setting the Clock polarity (CPOL) is not supported, yet (SPI\_MODE2 and SPI\_MODE3 not working).
4343

44-
The usual SPI pins are:
44+
The usual SPI pins are:
4545

4646
- ``MOSI`` = GPIO13
4747
- ``MISO`` = GPIO12
@@ -73,7 +73,7 @@ ESP-specific APIs
7373

7474
Some ESP-specific APIs related to deep sleep, RTC and flash memories are available in the ``ESP`` object.
7575

76-
``ESP.deepSleep(microseconds, mode)`` will put the chip into deep sleep. ``mode`` is one of ``WAKE_RF_DEFAULT``, ``WAKE_RFCAL``, ``WAKE_NO_RFCAL``, ``WAKE_RF_DISABLED``. (GPIO16 needs to be tied to RST to wake from deepSleep.) The chip can sleep for at most ``ESP.deepSleepMax()`` microseconds.
76+
``ESP.deepSleep(microseconds, mode)`` will put the chip into deep sleep. ``mode`` is one of ``WAKE_RF_DEFAULT``, ``WAKE_RFCAL``, ``WAKE_NO_RFCAL``, ``WAKE_RF_DISABLED``. (GPIO16 needs to be tied to RST to wake from deepSleep.) The chip can sleep for at most ``ESP.deepSleepMax()`` microseconds. If you implement deep sleep with ``WAKE_RF_DISABLED`` and require WiFi functionality on wake up, you will need to implement an additional ``WAKE_RF_DEFAULT`` before WiFi functionality is available.
7777

7878
``ESP.deepSleepInstant(microseconds, mode)`` works similarly to ``ESP.deepSleep`` but sleeps instantly without waiting for WiFi to shutdown.
7979

0 commit comments

Comments
 (0)