← index #8941Issue #15168
Related · high · value 0.940
QUERY · ISSUE

Support config("pm")

openby peterharperukopened 2022-07-21updated 2022-07-21
enhancement

Currently I can set the power management value for wlan (network cyw43) with the config function. But I can't query the current value. It would be useful to be able to do this for debugging.

applies to network cyw43 wifi
Requires a change to the driver https://github.com/georgerobotics/cyw43-driver/pull/8
I will push a change.

CANDIDATE · ISSUE

esp8266, esp32: WiFi: clarification about PowerManagement attributes

openby massimosalaopened 2024-05-30updated 2025-11-06
docs

Checks

  • I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.

  • I've searched for existing issues and didn't find any that matched.

Documentation URL

https://docs.micropython.org/en/latest/library/network.WLAN.html

Description

Trying to disable PowerManagement on a esp board acting as client WiFi.

The last doc says:

Constants
WLAN.PM_PERFORMANCE
WLAN.PM_POWERSAVE
WLAN.PM_NONE

I tried from REPL:

from network import *
nic = WLAN(STA_IF)
nic.config(pm = WLAN.PM_NONE)

dir(nic)
['__class__', 'PM_NONE', 'PM_PERFORMANCE', 'PM_POWERSAVE', 'active', 'config', 'connect', 'disconnect', 'ifconfig', 'isconnected', 'scan', 'status']

Questions:

  1. So the attributes are available also on the nic instance: is it wanted or is just a leftover from the past ?

  2. esp32: do these attributes make obsolete the previous setting listen_interval ?

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied