Skip to content

esp32/modnetwork: interface to the WIFI power save functions of ESP-IDF #6774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/library/network.WLAN.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,15 @@ Methods
dhcp_hostname The DHCP hostname to use
reconnects Number of reconnect attempts to make (integer, 0=none, -1=unlimited)
============= ===========

.. method:: WLAN.wifi_ps(mode)
WLAN.wifi_ps()

Sets (when called with a parameter) or gets the ESP32 WLAN power save mode.
For details, please see the ESP-IDF WIFI documentation at https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi.html

The parameter mode may be one of the constants

* ``network.WIFI_PS_NONE``
* ``network.WIFI_PS_MIN_MODEM``
* ``network.WIFI_PS_MAX_MODEM``
Loading