Version: Smart Feature Phone 2.5

MozWifiConnectionInfoEvent

Description#

The MozWifiConnectionInfoEvent interface provides developers with information regarding the state of the current Wifi connection.

This interface also inherits from the Event interface.

Properties#

Methods#

EventHandler:#

  • WifiManager.onconnectioninfoupdate A handler for the connectioninfoupdate event; triggered any time the connection information changes. The event object is a MozWifiConnectionInfoEvent instance.

Example#

var wifi = navigator.mozWifiManager;
wifi.onconnectioninfoupdate = function (event) {
console.log('Update information for: ' + event.network.ssid);
console.log('IP: ' + event.ipAddress);
console.log('Speed: ' + event.linkSpeed.toFixed(2) + 'Mb/s');
console.log('Signal strength: ' + event.signalStrength.toFixed(2) + 'dBm (' + event.relSignalStrength.toFixed(0) + '%)');
}