You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/library/network.WLAN.rst
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -133,4 +133,18 @@ Methods
133
133
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)
134
134
reconnects Number of reconnect attempts to make (integer, 0=none, -1=unlimited)
135
135
txpower Maximum transmit power in dBm (integer or float)
136
+
pm WiFi Power Management setting (see below for allowed values)
136
137
============= ===========
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
0 commit comments