This article is in need of a technical review.
This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.
setPowerSavingMode method is used to have the WiFi adapter enter or exit the power saving mode.
var request = navigator.mozWifiManager.setPowerSavingMode(enabled);
A boolean indicating if the device must enter (
true) or exit (
false) the power saving mode.
It returns a
DOMRequest to handle the success or error of the operation.
Not part of any specification.