-
Notifications
You must be signed in to change notification settings - Fork 121
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
Not getting onCharacteristicUpdate callback with Bluno Beetle #30
Comments
I see this in the logs: BluetoothPeripheral: could not get CCC descriptor for characteristic 0000dfb1-0000-1000-8000-00805f9b34fb |
Well, if the CCC descriptor cannot be found, then it doesn't support notifying.... |
Wonder why iOS is able to get it. I see the following topics specifically about Bluno beetle and notification descriptor: |
I see on those pages that indeed the CCC descriptor is missing and that others are running into the same issue. So your device does not conform to the Bluetooth standard. You could try to fork Blessed and remove the checks on the CCC....perhaps it works then. |
Do you think I can just extend the BluetoothPeripheral class from Blessed and override the setNotify function? |
Don't think that'll work. You have to refactor the setNotify function so that it doesn't try to write the descriptor. It is not hard... |
Thanks for the help. Yeah, I was trying to avoid modifying the library but looks like I can't extend BluetoothPeripheral like you said. |
Got it to work doing what you said. Within the setNotify() function in BluetoothPeripheral, I updated the code where it checks to see if the CCC descriptor is null. If it is null, then I call this: |
Dear Sir i look this sputnikdev/bluetooth-gatt-parser#13 do you have Fitness Machine Service & Fitness Machine Control Point characteristic xml ? THX |
I have a Samsung Galaxy S7 running Android 8, and trying to read from a Bluno beetle using the following service UUID and characteristic UUIDs:
It's able to connect to the device and discover the service. However, the characteristic callback is never called for this characteristic.
Within the onServicesDiscovered, I'm setting up the notification like this:
The only way I can read the characteristic is if I force it like this:
peripheral.readCharacteristic(peripheral.getCharacteristic(REWIRE_SERVICE_UUID, REWIRE_CHARACTERISTIC_UUID));
But I need to get it automatically every time with notifications. I have an iOS app that's able to read the Bluno beetle fine, so something is different either with the Android device, or possibly the library. I'm also able to read heart rate monitors and other devices fine with the Blessed library. Any ideas?
The text was updated successfully, but these errors were encountered: