File tree 3 files changed +15
-14
lines changed 3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -139,12 +139,14 @@ Methods
139
139
Constants
140
140
---------
141
141
142
- .. data :: WLAN.PM_NONE
143
- WLAN.PM_MIN_MODEM
144
- WLAN.PM_MAX_MODEM
145
- WLAN.PM_LIGHT_SLEEP (``esp8266 only ``)
146
-
147
- Allowed values for the ``WLAN.config(pm=...) `` network interface parameter.
148
- ``PM_NONE ``, ``PM_MIN_MODEM `` and ``PM_MAX_MODEM `` are supported on the
149
- esp32 and esp8266 ports. ``PM_LIGHT_SLEEP `` is supported on the esp8266
150
- port.
142
+ .. data :: WLAN.PM_PERFORMANCE
143
+ WLAN.PM_POWERSAVE
144
+ WLAN.PM_NONE
145
+
146
+ Allowed values for the ``WLAN.config(pm=...) `` network interface parameter:
147
+
148
+ * ``PM_PERFORMANCE ``: enable WiFi power management to balance power
149
+ savings and WiFi performance
150
+ * ``PM_POWERSAVE ``: enable WiFi power management with additional power
151
+ savings and reduced WiFi performance
152
+ * ``PM_NONE ``: disable wifi power management
Original file line number Diff line number Diff line change @@ -640,8 +640,8 @@ STATIC const mp_rom_map_elem_t wlan_if_locals_dict_table[] = {
640
640
641
641
// Constants
642
642
{ MP_ROM_QSTR (MP_QSTR_PM_NONE ), MP_ROM_INT (WIFI_PS_NONE ) },
643
- { MP_ROM_QSTR (MP_QSTR_PM_MIN_MODEM ), MP_ROM_INT (WIFI_PS_MIN_MODEM ) },
644
- { MP_ROM_QSTR (MP_QSTR_PM_MAX_MODEM ), MP_ROM_INT (WIFI_PS_MAX_MODEM ) },
643
+ { MP_ROM_QSTR (MP_QSTR_PM_PERFORMANCE ), MP_ROM_INT (WIFI_PS_MIN_MODEM ) },
644
+ { MP_ROM_QSTR (MP_QSTR_PM_POWERSAVE ), MP_ROM_INT (WIFI_PS_MAX_MODEM ) },
645
645
};
646
646
STATIC MP_DEFINE_CONST_DICT (wlan_if_locals_dict , wlan_if_locals_dict_table );
647
647
Original file line number Diff line number Diff line change @@ -522,9 +522,8 @@ STATIC const mp_rom_map_elem_t wlan_if_locals_dict_table[] = {
522
522
523
523
// Constants
524
524
{ MP_ROM_QSTR (MP_QSTR_PM_NONE ), MP_ROM_INT (NONE_SLEEP_T ) },
525
- { MP_ROM_QSTR (MP_QSTR_PM_MIN_MODEM ), MP_ROM_INT (MODEM_SLEEP_T ) },
526
- { MP_ROM_QSTR (MP_QSTR_PM_MAX_MODEM ), MP_ROM_INT (MODEM_SLEEP_T ) },
527
- { MP_ROM_QSTR (MP_QSTR_PM_LIGHT_SLEEP ), MP_ROM_INT (LIGHT_SLEEP_T ) },
525
+ { MP_ROM_QSTR (MP_QSTR_PM_PERFORMANCE ), MP_ROM_INT (MODEM_SLEEP_T ) },
526
+ { MP_ROM_QSTR (MP_QSTR_PM_POWERSAVE ), MP_ROM_INT (LIGHT_SLEEP_T ) },
528
527
};
529
528
530
529
STATIC MP_DEFINE_CONST_DICT (wlan_if_locals_dict , wlan_if_locals_dict_table );
You can’t perform that action at this time.
0 commit comments