Uncaught (in promise): TypeError: WifiWizard2.getConnectedSSID is not a function
surajrao opened this issue · comments
Prerequisites
Check all boxes if you have done the following:
- Checked that your issue isn't already filed: https://github.com/tripflex/wifiwizard2/issues
- Make sure you fill out the Issue Type below
Issue type
Select all that apply
- Bug
- Enhancement
- Task
- Question
- Other
Description
Error in global functions
Steps to Reproduce
- Install plugin in Ionic 3 project
- Use WifiWizard2.getConnectedSSID(success, fail)
Or
WifiWizard2.getConnectedSSIDAsync()
Expected behavior:
Get success or fail error based on connection according to Docs.
Actual behavior:
ERROR Error: Uncaught (in promise): TypeError: WifiWizard2.getConnectedSSID is not a function
TypeError: WifiWizard2.getConnectedSSID is not a function
at 8.js:76
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:4982)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (vendor.js:4973)
at t.invokeTask (polyfills.js:3)
at r.runTask (polyfills.js:3)
at 8.js:76
at t.invoke (polyfills.js:3)
at Object.onInvoke (vendor.js:4982)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (vendor.js:4973)
at t.invokeTask (polyfills.js:3)
at r.runTask (polyfills.js:3)
at c (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (vendor.js:4973)
at t.invokeTask (polyfills.js:3)
at r.runTask (polyfills.js:3)
at o (polyfills.js:3)
at
Reproduces how often:
Everytime.
Additional Information
According to the code it probably needs to be getCurrentSSID
etc. Either the docs or the js file needs to be updated depending on how you want to keep it.
@surajrao thanks for reporting this, can you please try using the 3.0.0 branch and let me know if you still have issues?
https://github.com/tripflex/WifiWizard2/tree/3.0.0
Note that a lot has changed, so make sure to read the README doc as well:
https://github.com/tripflex/WifiWizard2/blob/3.0.0/README.md
@surajrao you are correct, i must have forgot to update that in the README docs to say getCurrentSSID
instead of getConnectedSSID
, but try 3.0.0 branch as that has HUGE updates and improvements, and i will be merging it very soon (once I work out the bind issues)
You can see the progress here:
#8
Looks like I had this wrong in the 3.0.0 branch too, so i've updated that one, and i'll update the master as well, it should be getConnectedSSID
and getConnectedBSSID
as in the README
fixed in 5c4a45a