8000 esp32/8266: WLAN(): add docs for set/get power saving mode. · micropython/micropython@47593ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 47593ed

Browse files
committed
esp32/8266: WLAN(): add docs for set/get power saving mode.
1 parent 98e31b8 commit 47593ed

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/library/network.WLAN.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,18 @@ Methods
133133
hostname The hostname that will be sent to DHCP (STA interfaces) and mDNS (if supported, both STA and AP). (Deprecated, use :func:`network.hostname` instead)
134134
reconnects Number of reconnect attempts to make (integer, 0=none, -1=unlimited)
135135
txpower Maximum transmit power in dBm (integer or float)
136+
pm WiFi Power Management setting (see below for allowed values)
136137
============= ===========
138+
139+
Constants
140+
---------
141+
142+
.. data:: WLAN.PM_NONE
143+
WLAN.PM_MIN_MODEM
144+
WLAN.PM_MAX_MODEM
145+
WLAN.PM_LIGHT_SLEEP (``esp8266 only``)
146+
147+
Allowed values for the ``WLAN.config(pm=...)`` network interface parameter.
148+
``PM_NONE``, ``PM_MIN_MODEM`` and ``PM_MAX_MODEM`` are supported on the
149+
esp32 and esp8266 ports. ``PM_LIGHT_SLEEP`` is supported on the esp8266
150+
port.

0 commit comments

Comments
 (0)
0