floatinghotpot / cordova-plugin-wifi

Cordova plugin to access mobile device Wifi info and operation
MIT License
19 stars 16 forks source link

connectWifi params #2

Open mounir01 opened 9 years ago

mounir01 commented 9 years ago

Please what are the parameters (params) in connectWifi methos?

jorisw commented 9 years ago

Looks like the plugin passes an object that will validate as a WiFi configuration object, straight to the native WifiManager. Example:

{
   'SSID' : 'My Network'
   'preSharedKey' : 'abcdefhijklmnopqrstuvwxyz'
}

Docs: http://developer.android.com/reference/android/net/wifi/WifiConfiguration.html