Commit: 566db0ed69d1cabea83e76f843051b9eb6fb0777
Parent: 664e10ff7ebf8dd9b132bd0a5c68f47ddbf561c7
Author: Howard Chung <howardchung@google.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-09-16 19:38:03
Tree: 8c6ad9c32c380620edb18965f07e151a0fe78b49

client: Implement more interfaces of ADV monitor in bluetoothctl This patch creates a submenu in bluetoothctl and implements several commands. new commands: [bluetooth]# menu monitor [bluetooth]# add-or-pattern 1 2 ab0011 Advertisement Monitor 0 added [bluetooth]# add-or-pattern-rssi -80, ,5 1 2 aa 3 4 ff Advertisement Monitor 1 added [bluetooth]# get-pattern all Advertisement Monitor 0 path: /org/bluez/adv_monitor_app/0 type: or_patterns pattern 1: start position: 1 AD data type: 2 content: ab0011 Advertisement Monitor 1 path: /org/bluez/adv_monitor_app/1 type: or_patterns rssi: high threshold: -50 high threshold timer: 5 low threshold: -80 low threshold timer: 5 pattern 1: start position: 1 AD data type: 2 content: aa pattern 2: start position: 3 AD data type: 4 content: ff [bluetooth]# get-supported-info Supported Features: Supported Moniter Types: or_patterns [bluetooth]# remove-pattern 0 Monitor 0 deleted

Diffstat

M client/adv_monitor.c | 341 ++++++++++++++++++++++++++++++++++++++++
M client/adv_monitor.h | 10 ++++++++++
M client/main.c | 109 ++++++++++++++++++++++++++++++++++++++++

3 files changed, 460 insertions(+), 0 deletions(-)

View Full Diff | Patch