ConnectionManager and imp.setpowersave(true)

Just want to understand behaviour.

What happens if I instantiate ConnectionManager with “stayConnected” set to true and then also include imp.setpowersave(true) in my device code. Who wins or can they happily coexist.

They can co-exist. Powersave mode is IEEE PS, it doesn’t disconnect, it just gets the radio to tell the access point that it’s going to sleep, and could the AP please queue incoming traffic for it.

The imp then wakes up to listen to the AP only at beacon intervals, and hence saves significant amounts of power (can be 80%+ on a quiet network).

That’s good to know. Thanks.