cordova-wifiinfo-plugin

Cordova WifiInfo Plugin


Keywords
cordova, wifiinfo, wifi, ecosystem:cordova, cordova-android
License
MIT
Install
npm install cordova-wifiinfo-plugin@0.1.0

Documentation

cordova-wifiinfo-plugin

Cordova plugin based on android.net.WifiInfo, retrives wifiInfo like link speed SSID etc.

Installation

cordova plugin add cordova-wifiinfo-plugin

Usage

 function success(results) {
            console.log(JSON.stringify(results));
          };
  function err(e) {
            console.log(JSON.stringify(e));
          };

 WifiInfo.getWifiInfo(success,err);

## Response

{
"MacAddress" : "xx:xx:xx:xx:xx:xx",
"BSSID" : "xx:xx:xx:xx:xx:xx",
"HiddenSSID" : false,
"IpAddress" : "x.x.x.x",
"LinkSpeed" : 72,
"NetworkId" : 5,
"Rssi" : -40,
"SSID" : "\"xxx_xxx\""
}