Re: What happens with bluetooth when connection is interrupted
Marcel Holtmann <[email protected]> Thu, 18 Sep 2008 19:11:50 +0200
| Newsgroups | gmane.linux.bluez.devel |
|---|---|
| Message-ID | <1221757910.6782.17.camel@californication> |
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 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/