client: Add battery percentage to info command
authorSonny Sasaka <sonnysasaka@chromium.org>
Thu, 2 Jul 2020 18:01:55 +0000 (11:01 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 12 Apr 2021 09:00:49 +0000 (14:30 +0530)
commit8daba890d304b5038d19c16e4b9995be3c96b9c1
tree7bfadca49757dd2cb984737a9895a274f3071168
parentd96a0c7505eb0692fd32af423691147243163f20
client: Add battery percentage to info command

This adds the Battery Percentage to the info command based on
org.bluez.Battery1 API. Example usage:

[bluetooth]# info XX:XX:XX:XX:XX:XX
Device XX:XX:XX:XX:XX:XX (random)
        Name: ...
        Alias: ...
        ...
        Modalias: ...
        Battery Percentage: 0x64 (100)

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
client/main.c