diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-02-25 21:11:29 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-02-25 21:52:02 -0800 |
commit | 5fca83cd4aca5f276be73d99cd5ca04302bed6f3 (patch) | |
tree | 40bd6d362c8a43cdbc17de5fd3c995183954c9e3 /README.md | |
parent | 040d1dfbada13ecee757ee70b40e3c41e2f1cf45 (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
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: |