Commit: 4f68e5f1fe89702e0fddb69b65ead76499f70d8a
Parent: eca59ac27890843248e764c59ea1b844173d5c63
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2018-05-24 11:09:30
Tree: c13743b53b6abb1276c3e4c9324115bd9c5dc8c1

client: Add advertise.discoverable command This adds advertise.discoverable command which can be used to set it own instance: [bluetooth]# advertise.discoverable on [bluetooth]# advertise on @ MGMT Command: Add Advertising (0x003e) plen 14 Instance: 1 Flags: 0x00000001 Switch into Connectable mode Duration: 0 Timeout: 0 Advertising data length: 3 Flags: 0x02 LE General Discoverable Mode Scan response length: 0 < HCI Command: LE Set Advertising Data (0x08|0x0008) plen 32 Length: 3 Flags: 0x02 LE General Discoverable Mode

Diffstat

M client/advertising.c | 35 +++++++++++++++++++++++++++++++++++
M client/advertising.h | 1 +
M client/main.c | 17 +++++++++++++++++

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

View Full Diff | Patch