-
Notifications
You must be signed in to change notification settings - Fork 88
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
Cannot get characteristics of battery service #41
Comments
Have you previously connected to the peripheral using Bluez without the battery service implemented? |
Yes indeed! But unfortunately that did not do the trick. I deleted the cache and also checked with another device where it didn't work as well. |
The Battery Service and its characteristics are hidden by the battery plugin that is loaded at startup of bluetoothd. You can simply tell bluetoothd to not load the battery plugin and you'll be able to access the Battery Service. To do so startup bluetoothd with '-P battery'. Edit the bluetooth.service file to do this. |
I'm struggling with reading the battery value of a peripheral.
The peripheral is based on a Nordic nrf52 and implements the battery service 0x180F and a read characteristic.
After connecting to the device I can find the battery service, but it does not contain any characteristics, although I can confirm that they exist with the 'nrfConnect' app.
Has anyone succeeded in reading the battery value of a peripheral or in discovering its battery characteristics?
The text was updated successfully, but these errors were encountered: