All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] battery: Add BT SIG reserved numbers used by Battery Service
@ 2017-10-20 23:03 Bastien Nocera
  2017-10-20 23:03 ` [PATCH 2/3] profiles/battery: Add Bluetooth LE Battery service Bastien Nocera
  2017-10-20 23:03 ` [PATCH 3/3] profiles/battery: Remove unused bas.[ch] Bastien Nocera
  0 siblings, 2 replies; 10+ messages in thread
From: Bastien Nocera @ 2017-10-20 23:03 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Bastien Nocera

Add the Battery Level and Battery Power State UUIDs as per:
https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.battery_level.xml
https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.battery_power_state.xml
---
 lib/uuid.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/uuid.h b/lib/uuid.h
index 2c57a3378..614b3c4e4 100644
--- a/lib/uuid.h
+++ b/lib/uuid.h
@@ -119,6 +119,8 @@ extern "C" {
 #define GATT_CHARAC_RECONNECTION_ADDRESS		0x2A03
 #define GATT_CHARAC_PERIPHERAL_PREF_CONN		0x2A04
 #define GATT_CHARAC_SERVICE_CHANGED			0x2A05
+#define GATT_CHARAC_BATTERY_LEVEL			0x2A19
+#define GATT_CHARAC_BATTERY_POWER_STATE			0x2A1A
 #define GATT_CHARAC_SYSTEM_ID				0x2A23
 #define GATT_CHARAC_MODEL_NUMBER_STRING			0x2A24
 #define GATT_CHARAC_SERIAL_NUMBER_STRING		0x2A25
-- 
2.14.2


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-10-26 18:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-20 23:03 [PATCH 1/3] battery: Add BT SIG reserved numbers used by Battery Service Bastien Nocera
2017-10-20 23:03 ` [PATCH 2/3] profiles/battery: Add Bluetooth LE Battery service Bastien Nocera
2017-10-23 13:55   ` Bastien Nocera
2017-10-24 11:58   ` Luiz Augusto von Dentz
2017-10-24 12:30     ` Bastien Nocera
2017-10-26 13:19       ` Luiz Augusto von Dentz
2017-10-26 13:36         ` Luiz Augusto von Dentz
2017-10-26 14:47           ` Bastien Nocera
2017-10-26 18:13             ` Luiz Augusto von Dentz
2017-10-20 23:03 ` [PATCH 3/3] profiles/battery: Remove unused bas.[ch] Bastien Nocera

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.