Skip to main content

imp.getpowersave()

Returns the imp’s current WiFi power-save setting

Availability

Device

Returns

Bool — true if WiFi power-save mode is active, otherwise false

Description

WiFi power-save mode is set by calling:

imp.setpowersave(true);

Power-save mode is off by default; this method will return false.

For more information on power-save mode, see imp.setpowersave().

Module-specific Information

impC001

The impC001 does not currently implement imp.getpowersave().

Example Code

This snippet uses imp.getpowersave() to confirm that the imp has indeed been set to power-save mode.