diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-02-25 21:11:29 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-04-04 11:47:32 -0700 |
commit | 17c4b3a74117d16315fc40eac7fb8d50007ad40e (patch) | |
tree | 2a123bc4539d0e9166b9379e254e6e97bc7eb4e0 /README.md | |
parent | 131549d495b2d76a5d52808e25d25f4ceb852199 (diff) |
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 SPEC-2290
Change-Id: I7a442ece7cf6b508d6290130a939fccc1bddebb9
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 40 |
1 files changed, 39 insertions, 1 deletions
@@ -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: |