Check battery level of connected bluetooth device on linux

后端 未结 9 1758
盖世英雄少女心
盖世英雄少女心 2021-01-30 02:09

How can I check the battery level of a connected bluetooth device? The device shows the battery level on Android so I\'m assuming the device supports the GATT-based Battery Serv

9条回答
  •  走了就别回头了
    2021-01-30 03:02

    As said by @OlivierM above, the UUID is filtered by bluetoothd. You could undo that and export the UUID just as any other service characteristics by removing the following from the export_service() function in src/gatt-client.c

    if (gatt_db_service_get_claimed(attr))
         return;
    

提交回复
热议问题