You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Have you previously connected to the peripheral using Bluez without the battery service implemented?
Bluez stores the resolved services for each peripheral and does not resolve again unless you specifically remove them.
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: