From 5fca83cd4aca5f276be73d99cd5ca04302bed6f3 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Mon, 25 Feb 2019 21:11:29 -0800 Subject: binding: bluetooth: add adapter_changes event adapter_changes event allows clients to know when an adapter's status changes as in addition or removal. Bug-AGL: SPEC-1763 Change-Id: I7a442ece7cf6b508d6290130a939fccc1bddebb9 Signed-off-by: Matt Ranostay --- README.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'README.md') 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: + +
+{
+  "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"
+    ]
+  }
+}
+
+ +Sample of adapter being remove: + +
+{
+  "adapter": "hci0",
+  "action": "removed",
+}
+
+ ### device_changes event Sample of discovering a new device event: -- cgit 1.2.3-korg