Wifi Manager Plugin

This plugin allows you to connect to wifi manually on android

Limitations:

Only works on wifiManager

Functions:

wifiManager.isEnabled()-- returns boolean true if wifi enabled, false if not

wifiManager.setEnabled(enable)

enable(boolean) true to turn wifi on, false to turn off wifi

wifiManager.addNetwork(networkType, ssid, password)

networkType(string) the type of wifi (types are: "WPA2", "WPA", "WEP", or "NONE")

ssid(string) the name of the wifi network

password(string)(optional) password for wifi network

wifiManager.disconnectNetwork(ssid) -- returns boolean (true for error), string ("network disabled" or "network not found")

ssid(string) the name of the wifi network

wifiManager.connectNetwork(ssid) -- returns boolean (true for error), string ("cannot connect to network" or "connected")

ssid(string) the name of the wifi network

wifiManager.removeNetwork(ssid) -- returns boolean (true for error), string ("cannot connect to network" or "connected")

ssid(string) the name of the wifi network

wifiManager.disconnect()

wifiManager.listNetworks() (list of preconnected networks) -- returns array of tables which contain ssid(string) and bssid(string)

wifiManager.startScan() -- required before getting getScanResults

wifiManager.getScanResults() (list of networks) -- returns array of tables which contain ssid(string), capabilities(string), frequency(number), level(number),and bssid(string)

wifiManager.getCurrentNetwork() --returns strings ssid(string), bssid(string) for current network

wifiManager.getMacAddress() -- returns string

wifiManager.ping() -- returns boolean(true if connected)

Build.settings

Helpful Links:

Example

Support

Get Plugin