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

local install timeout error #22

Open
Daryl149 opened this issue Nov 12, 2018 · 2 comments
Open

local install timeout error #22

Daryl149 opened this issue Nov 12, 2018 · 2 comments

Comments

@Daryl149
Copy link

When I follow the instructions to install from NPM and run the miband-test in terminal (OSX), it says it can connect to the device. But after that a timeout occurs:

Requesting Bluetooth Device...
Connecting to the device...
Connected
Argh! Timeout
Device disconnected
@hoqqun
Copy link

hoqqun commented Dec 2, 2018

I have the same problem.

Did you fix it?

I think its error occured below the method.

  async authenticate() {
    await this.authReqRandomKey()

    return new Promise((resolve, reject) => {
      setTimeout(() => reject('Timeout'), 10000);
      this.once('authenticated', resolve);
    });
  }

@Daryl149
Copy link
Author

Daryl149 commented Dec 5, 2018

No, I tried increasing the timeout value, but that didn't work.

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