- License - The MIT License
- Test on Cordova 3.4.0
##Install Step (Cordova CLI)
Retrieve the wifi information available from the last scan.
(TODO: handle options to require a new scan and fresh data)
navigator.wifi.getWifiInfo(success, error, options);
Require a new wifi scan as soon as possible and
retrieve continuatively the obtained data.
(TODO: handle options to enable/disable the scan request)
id = navigator.wifi.watchWifiInfo(success, error, options);
Unwatch wifi updates
navigator.wifi.clearWatch(id);
{
connection: {
BSSID: BSSID,
HiddenSSID: HiddenSSID,
SSID: SSID,
MacAddress: MacAddress,
IpAddressInt: IpAddressInt,
IpAddress: IpAddress,
NetworkId: NetworkId,
RSSI: RSSI,
LinkSpeed: LinkSpeed
},
networks: [
{
BSSID: BSSID,
SSID: SSID,
frequency: frequency,
level: level,
capabilities: capabilities
},
...
]
}