Closed
Description
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)