summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-03-07 03:39:16 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2019-03-07 03:39:16 +0000
commit66d4abbb3c5462ceb65148ea5ee13645d588d55e (patch)
treeb6af99cbae368cd50514377bdc8a29a31d1246e3 /README.md
parent0f98b3a52cf873c391e3287cee9fe614d02a2884 (diff)
parent5fca83cd4aca5f276be73d99cd5ca04302bed6f3 (diff)
Merge "binding: bluetooth: add adapter_changes event"
Diffstat (limited to 'README.md')
-rw-r--r--README.md40
1 files changed, 39 insertions, 1 deletions
diff --git a/README.md b/README.md
index 86b971f..fa77efc 100644
--- a/README.md
+++ b/README.md
@@ -175,11 +175,49 @@ To do the same for the respective device, verb, and for singular profile
| Name | Description | JSON Event Data |
|-------------------|------------------------------------------|-------------------------------------------|
-| device_changes | report on bluetooth devices | see device_changes event section |
+| adapter_changes | report on Bluetooth adapter states | see adapter_changes event section |
+| device_changes | report on Bluetooth devices | see device_changes event section |
| media | report on MediaPlayer1 events | see media event section |
| agent | PIN from BlueZ agent for confirmation | see agent event section |
+### adapter_changes event
+
+Sample of adding new adapter event:
+
+<pre>
+{
+ "adapter": "hci0",
+ "action": "added",
+ "properties": {
+ "address": "60:30:D4:66:55:A7",
+ "powered": false,
+ "discoverable": false,
+ "discoverabletimeout": 180,
+ "pairable": true,
+ "pairabletimeout": 0,
+ "discovering": false,
+ "uuids": [
+ "00001801-0000-1000-8000-00805f9b34fb",
+ "0000110e-0000-1000-8000-00805f9b34fb",
+ "00001200-0000-1000-8000-00805f9b34fb",
+ "00001800-0000-1000-8000-00805f9b34fb",
+ "0000111e-0000-1000-8000-00805f9b34fb",
+ "0000110c-0000-1000-8000-00805f9b34fb"
+ ]
+ }
+}
+</pre>
+
+Sample of adapter being remove:
+
+<pre>
+{
+ "adapter": "hci0",
+ "action": "removed",
+}
+</pre>
+
### device_changes event
Sample of discovering a new device event: