1
function ssidHandler(s){
    alert("Current SSID"+s);
}
function fail(e){
    alert("Failed"+e);
}

    WifiWizard.getCurrentSSID(ssidHandler, fail);

I tried this, but I am being always passed to error method. And alert message prints "

Incorrect action parameter : getConnectedSSID"

I want to only use getConnectedSSID. apart from adding above code added

in my config.xml and built it on phonegap build.

and added WifiWizard.js from latest github repo

Please advice ...

github repo : https://github.com/parsonsmatt/WifiWizard

This is question based on How can I get WiFi Network information (SSID) in a Phonegap app?

I initially posted the question there in answers section and it was deleted so posting as new question.

Community
  • 1
  • 1
algae514
  • 93
  • 9
  • Phonegap plugin questions should go to the developer of that plugin. –  Sep 19 '15 at 00:59

1 Answers1

2

Issue resolved, source needed to be updated to npm and only then version 0.2.9 would work. otherwise I was using 0.1.0

sample below

<gap:plugin name="com.pylonproducts.wifiwizard" source="npm" version="0.2.9"/>

for anyone's future reference !!!

algae514
  • 93
  • 9