Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise): TypeError: WifiWizard2.getConnectedSSID is not a function #11

Closed
3 of 7 tasks
surajrao opened this issue Feb 20, 2018 · 4 comments
Closed
3 of 7 tasks

Comments

@surajrao
Copy link
Contributor

surajrao commented Feb 20, 2018

Prerequisites

Check all boxes if you have done the following:

Issue type

Select all that apply

  • Bug
  • Enhancement
  • Task
  • Question
  • Other

Description

Error in global functions

Steps to Reproduce

  1. Install plugin in Ionic 3 project
  2. 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.

@tripflex
Copy link
Owner

@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

@tripflex
Copy link
Owner

tripflex commented Feb 20, 2018

@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

@tripflex
Copy link
Owner

fixed in 5c4a45a

@surajrao
Copy link
Contributor Author

@tripflex I think you missed the async version of those methods though. Thanks for the quick response. I created a pull request for it. #12

ViggoChavine pushed a commit to Effera/WifiWizard2 that referenced this issue Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants