gattlib icon indicating copy to clipboard operation
gattlib copied to clipboard

How to get connected devices?

Open zewenhs opened this issue 5 years ago • 1 comments

After scan and connect we can get the BLE device object which is broadcasting, then communication with it by gattlib, but in some cases, need to communication with an already connected devices , for example, an BLE remote controller have already connected to the master, we can't disconnect the remote controller then scan and connect to it with gattlib . so now we need to get an connected device object and use gattlib do further thing. how to do with this? thanks!

zewenhs avatar Sep 04 '19 12:09 zewenhs

I looked into this a little. It looks like bluez doesn't return connected devices in discovery results. They can be enumerated via dbus similar to services or characteristics, but I don't see code in gattlib to do that yet, so this is probably a feature request, and a documentation bug that the limitation isn't documented.

xloem avatar Dec 15 '20 23:12 xloem