-
Notifications
You must be signed in to change notification settings - Fork 308
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Enable notifications without going through the callback system? #1637
Comments
It depends on the characteristic. If the characteristic supports reading, then sure, just read in a loop. If it doesn't, then notifications is the only way. |
service_explorer.py reports:
The characteristic I need to connect to is 0xFFF1. This is a relatively "dump" device that forwards data from a serial connection to BLE, and from BLE to a serial connection. Processing is done by a separate microcontroller that doesn't know anything about Bluetooth. So this is pretty much a documentation question: Am I missing something, can I subscribe to notifications without a callback? Or is a callback with a queue the "proper" solution? |
If this is being used for serial data and you don't want to miss any notifications, yes a callback queue is the "proper" solution. ... at least for now - see related feature request: #1501 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Description
I am trying to communicate with a device that uses a CH9141K BLE to serial bridge to connect user applications. It looks like it requires the host to enable notifications before it starts sending data over BLE.
What I Did
This works fine, though I'm wondering if I can just somehow enable notifications without registering a callback, and then use
to just process messages as they arrive in a loop?
The text was updated successfully, but these errors were encountered: