Bluetooth - remove device from list command ?

Status
Not open for further replies.

anneranch

Active Member
Joined
Mar 16, 2019
Messages
223
Reaction score
43
Credits
2,078
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".
 


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.
 
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?
 
Status
Not open for further replies.

Staff online

Members online


Latest posts

Top