Commit: a41a625b1d833d6a1df91a6a58d7786f8755c89c
Parent: b12b7e76556dc2bd037ee89604b759f3de60c695
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2017-08-16 13:59:00
Tree: 4dff5e678e840e1a5f6de0ad08f5650dbd9aeb9f

client: Emit PropertiesChanged if advertising changes This allows bluetoothd to detect changes done by the user without having to rely on advertise command to unregister and register again: bluetooth]# set-advertise-name blah [bluetooth]# advertise on @ MGMT Command: Add Advertising (0x003e) plen 17 Instance: 1 Flags: 0x00000003 Switch into Connectable mode Advertise as Discoverable Duration: 0 Timeout: 0 Advertising data length: 0 Scan response length: 6 Name (complete): blah [bluetooth]# set-advertise-name bleh @ MGMT Command: Add Advertising (0x003e) plen 17 Instance: 1 Flags: 0x00000003 Switch into Connectable mode Advertise as Discoverable Duration: 0 Timeout: 0 Advertising data length: 0 Scan response length: 6 Name (complete): bleh

Diffstat

M client/advertising.c | 49 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - -
M client/advertising.h | 16 ++++++++- - - - - - - -
M client/main.c | 22 +++++++++++- - - - - - - - - - -

3 files changed, 59 insertions(+), 28 deletions(-)

View Full Diff | Patch