Re: [Bluez-devel] What happens with bluetooth when connection is interrupted

Marcel Holtmann
2008-09-18T17:11:50Z

Hi Reto,

> I have a little question. I have to develop an Application where it
> can happen that the connection interrupts. I poll the adapter every
> second to see if I am still connected to the specific device. Now I
> have to know if there is a possibility that the bluez-function
> "isConnected(string address)" (D-Bus-Function) returns false but the
> connection itself is recovered by the BT-Stack so the connection would
> still exist.

whatever you do don't poll for a status. You will get a D-Bus signal if
you are connected or paired etc. Check how bluez-gnome is doing it.

Regards

Marcel