Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

WifiManager.connection

This API is available on Firefox OS for internal applications only.

Summary

The connection property value provides the status and current network in used by the WiFi adapter.

Syntax

var mac = navigator.mozWifiManager.connection

Value

Return an object with the following properties:

status Read only
A string representing the current connection status, one of disconnected, connecting, associated, or connected (see MozWifiStatusChangeEvent.status for more information about each of those statuses).
network Read only
A network object representing the current network in use or null if the device is not connected to any network (see WifiManager.getNetworks() for more information about network objects).

Specification

Not part of any specification.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, teoli, kscarfone, Jeremie
 Last updated by: chrisdavidmills,