Skip to content

esp8266, esp32: WiFi: clarification about PowerManagement attributes #15168

@massimosala

Description

@massimosala

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy