Skip to content

WiFi.setSleep with ENUM instead of boolean #3896

Closed
@LasseRosenow

Description

@LasseRosenow

I think its bad, that the WiFi.setSleep requires a boolen which will put it into WIFI_PS_MIN_MODEM or WIFI_PS_NONE but never into WIFI_PS_MAX_MODEM...

So if you want to put your device into WIFI_PS_MAX_MODEM sleep you have to use the low_level funcitons.

Why not just use the wifi_ps_type_t as the argument of WiFi.setSleep?
Example: setSleep(wifi_ps_type_t mode)

Or at least give us the possibility to specify the wifi_ps_type_t with the second parameter if you don't want to break things.
Example: setSleep(bool enable, wifi_ps_type_t mode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleIssue is stale stage (outdated/stuck)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions