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

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 03bd089

Browse files
committed
esp32/8266: WLAN(): add docs for set/get power saving mode.
1 parent a1c1c7b commit 03bd089

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