Bluetooth - remove device from list command ?

anneranch

Active Member
Joined
Mar 16, 2019
Messages
159
Reaction score
39
Credits
1,396
I have an icon , in upper right top of initial screen, it is a Bluetooth symbol.
I am do not know what OS application runs it but it is managing Bluetooth.
At some point I have an option to "remove device from list".
Can somebody lead me to the actual command which does that ?
I need to clear this mystery list so my (C code) scan
for nearby Bluetooth devices actually physically scans
for devices and NOT retrieves data from this unknown "list".
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,014
Reaction score
690
Credits
5,124
There are a few different ways to do this.

You might take a look at.

bt-device -h

Usage:
bt-device [OPTION…] - a bluetooth device manager

Version UNKNOWN

Help Options:
-h, --help Show help options

Application Options:
-a, --adapter=<name|mac> Adapter Name or MAC
-l, --list List added devices
-c, --connect=<mac> Connect to the remote device
-d, --disconnect=<name|mac> Disconnect the remote device
-r, --remove=<name|mac> Remove device
-i, --info=<name|mac> Get info about device
-s, --services Discover device services
--set Set device property
-v, --verbose Verbosely display remote service records

Services Options:
-s, --services <name|mac> [<pattern>]
Where `pattern` is an optional specific UUID to search

Set Options:
--set <name|mac> <property> <value>
Where
`name|mac` is a device Name or MAC
`property` is one of:
Alias
Trusted
Blocked

Some distro's still have hcitool also.
 
OP
A

anneranch

Active Member
Joined
Mar 16, 2019
Messages
159
Reaction score
39
Credits
1,396
There are a few different ways to do this.

You might take a look at.

bt-device -h

Usage:
bt-device [OPTION…] - a bluetooth device manager

Version UNKNOWN

Help Options:
-h, --help Show help options

Application Options:
-a, --adapter=<name|mac> Adapter Name or MAC
-l, --list List added devices
-c, --connect=<mac> Connect to the remote device
-d, --disconnect=<name|mac> Disconnect the remote device
-r, --remove=<name|mac> Remove device
-i, --info=<name|mac> Get info about device
-s, --services Discover device services
--set Set device property
-v, --verbose Verbosely display remote service records

Services Options:
-s, --services <name|mac> [<pattern>]
Where `pattern` is an optional specific UUID to search

Set Options:
--set <name|mac> <property> <value>
Where
`name|mac` is a device Name or MAC
`property` is one of:
Alias
Trusted
Blocked

Some distro's still have hcitool also.

Thanks.I can use some of the commands.
Not sure I like the "bluez" in part of the name...

Since this was build in 2017 - I like to MODIFY my post

What is the BASE command structure for using Bluetooth ?
It sure looks as "HCI" .
Can anybody care to confirm or dispute that?
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top