-
Notifications
You must be signed in to change notification settings - Fork 869
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
Trouble getting notified when device disconnects #76
Comments
Two notes:
I've updated the snippet to disconnect after connecting:
|
Ahh, good catch, cut and paste error. In my code I'm using If I call Thoughts? |
Which peripheral are you using? I haven't tried turning a device off while connected. On OS X blued/CoreBluetooth is responsible for the disconnect event - maybe you just have to wait a while? |
Closing due to inactivity, @facultymatt re-open if necessary. |
I have a sample app and the
peripheral.on('disconnect')
is not working as expected.I would expect this would give me the message hello and goodbye as my bluetooth device moved in and out of range. The hello message works, but I never get a disconnect event.
Is there a better way to do this?
The text was updated successfully, but these errors were encountered: