muka / go-bluetooth

Golang bluetooth client based on bluez DBus interfaces
Apache License 2.0
653 stars 123 forks source link

List paired devices #164

Closed lebck closed 2 years ago

lebck commented 2 years ago

Hi!

Maybe I'm missing something, but it seems that currently it's not possible to get a list of already paired devices.

I know I can get all nearby, paired devices by doing a discovery and filtering out all the non-paired devices, but I'd like to show all paired devices, regardless of whether they are nearby or not, and without the need to do a discovery first.

muka commented 2 years ago

I do not think this is possible, a Discovery is always needed. Maybe you could fetch cached devices but still via Discovery I guess.