client: Add scan.discoverable command
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 26 Jul 2018 12:26:30 +0000 (15:26 +0300)
committerhimanshu <h.himanshu@samsung.com>
Tue, 14 Jan 2020 08:53:35 +0000 (14:23 +0530)
commit2049d478a3be2916f00af998164e4de790687c75
tree991734ed491c03349634610cfe74658d8813cea7
parentee88b4b65d3a16d45aff855bd762ee0061fe1711
client: Add scan.discoverable command

This adds discoverable command to scan menu which can be used to set
if adapter should become discoverable while scanning:

[bluetooth]# scan.discoverable on
[bluetooth]# scan on
SetDiscoveryFilter success
[CHG] Controller XX:XX:XX:XX:XX:XX Discoverable: yes
Discovery started
[CHG] Controller XX:XX:XX:XX:XX:XX Discovering: yes
[bluetooth]# scan off
Discovery stopped
[CHG] Controller XX:XX:XX:XX:XX:XX Discoverable: no

Change-Id: Ica34e2bc17c72460b5fd41e8104cff2bb5fa0234
Signed-off-by: himanshu <h.himanshu@samsung.com>
client/main.c