• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS APIs
  5. WifiManager
  6. WifiManager.connection

WifiManager.connection

In This Article
  1. Summary
  2. Syntax
  3. Value
  4. Specification
  5. See also

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

  • WifiManager
  • The WifI Information API

Document Tags and Contributors

Tags: 
  • API
  • B2G
  • Firefox OS
  • Non Standard
  • Property
  • Reference
  • WiFi
 Contributors to this page: chrisdavidmills, teoli, kscarfone, Jeremie
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:08:13 AM
See also
  1. WiFi Information API
  2. Archive
  3. Events
    1. statuschange
    2. connectioninfoupdate
  4. Related pages for WiFi Information API
    1. MozWifiCapabilities
    2. MozWifiConnection
    3. MozWifiConnectionInfo
    4. MozWifiConnectionInfoEvent
    5. MozWifiManager
    6. MozWifiNetwork
    7. MozWifiStationChangeEvent
    8. MozWifiStatusChangeEvent
    9. WifiManager