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

Error callback doesn't execute #16

Open
AndrelsFlor opened this issue Nov 19, 2018 · 2 comments
Open

Error callback doesn't execute #16

AndrelsFlor opened this issue Nov 19, 2018 · 2 comments

Comments

@AndrelsFlor
Copy link

AndrelsFlor commented Nov 19, 2018

Hello, i'm on MIUI 9.6.2(Android 7.1.2) and, as the title says, i can't get the error callback to execute. Even when i put in the wrong password for the network, i get the success message.

this is the function i'm executing:

async connectToWifi(ssid, password) {
      console.log('SSID', ssid)
      console.log('PASSWORD', password)
      this.setState({status: 4})
      WifiManager.connectToProtectedSSID(ssid, password, false)
          .then(() => {
              console.log('Connected successfully!')
          }, () => {
              console.log('Connection failed!')
          })


  }
@bntzio
Copy link

bntzio commented Jan 8, 2019

+1

@RenderCoder
Copy link

same problem, is there a bug?

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

3 participants