WifiScanner

Interface for android.net.wifi.WifiManager to list available access points and their signal strengths on Android.
nielsAD0.0.12
platforms: android
$ cordova plugin add nl.nielsad.cordova.wifiscanner

cordova-wifiscanner

Cordova interface for android.net.wifi.WifiManager to list available access points and their signal strengths.

This plugin is based on the structure of the Device-Motion plugin and exposes a similar API.

Installation

cordova plugin add nl.nielsad.cordova.wifiscanner

Supported Platforms

  • Android

Methods

  • navigator.wifi.getAccessPoints(successCallback, errorCallback)
  • navigator.wifi.watchAccessPoints(successCallback, errorCallback, options)
  • navigator.wifi.clearWatch(id)

For more information, see the documentation of the Device-Motion plugin.

Objects

  • AccessPoint (see android.net.wifi.ScanResult)
    • BSSID: Address of the access point (String)
    • SSID: Network name; (String)
    • level: RSSI (Number)