Parent: 86ed237fc6197f9085b17923d6a631856638c94a
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:31
Tree: 658cabecd4ebf44e83dc7b1d549b85fc8dea8743
client: Add advertise.discoverable-timeout command This adds advertise.discoverable-timeout command which can be used to limit the amount of time the advertisement is discoverable: [bluetooth]# advertise.discoverable on [bluetooth]# advertise.discoverable-timeout 10 [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 @ MGMT Event: Advertising Added (0x0023) plen 1 Instance: 1 @ MGMT Event: Command Complete (0x0001) plen 4 Add Advertising (0x003e) plen 1 Status: Success (0x00) Instance: 1 @ MGMT Command: Add Advertising (0x003e) plen 14 Instance: 1 Flags: 0x00000001 Switch into Connectable mode Duration: 0 Timeout: 0 Advertising data length: 3 Flags: 0x00 Scan response length: 0
Diffstat
| M | client/advertising.c | | | 38 | ++++++++++++++++++++++++++++++++++++++ |
| M | client/advertising.h | | | 1 | + |
| M | client/main.c | | | 22 | ++++++++++++++++++++++ |
3 files changed, 61 insertions(+), 0 deletions(-)