-
Notifications
You must be signed in to change notification settings - Fork 118
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
Notify of Characteristic Change Fails on 2.4.0 #168
Comments
I think the call in the loop may need changed to |
I think this is related to the other issues you are reporting. In 2.4.0 the logic for getting connected devices was changed and now uses the library internal lists rather than the OS. |
I don't think so, because it doesn't work even if I turn off advertising. There are 2 methods for notifying of characteristic changed, 1 that takes a central to notify and 1 that doesn't. On the one that doesn't, it is still querying the OS and not using the internal list, as it should. When using the debugger, |
I tried the example (https://github.com/weliem/bluetooth-server-example) and everything seems fine, but that is of course only a peripheral. |
I can submit a PR soon, I have a local code change that is working, its a very minor change. Thanks for continuing to help me. |
Another interesting finding.....so it gets removed from the internal list because of a random onConnectionStateChange callback that says it was disconnected. If you use |
Is there any update on this? We are facing this problem too. |
I had to revert to version |
@archie94 are you sure this is the same issue? There is no |
Umm .. this one
in Also may be related but from Nordic BLE library: |
Same problem here. No problem with debug release, i need to use 2.2.3 version |
When using version 2.3.4, everything works fine; however updating to 2.4.0 breaks notifying.
Inside of
BluetoothPeripheralManager
is the following:When using 2.4.0, the
getConnectedCentrals()
call is returning an empty list; however in 2.3.4, it is returning the centrals correctly.The text was updated successfully, but these errors were encountered: