Posts: 1
Joined: Thu Dec 04, 2008 11:11 pm

Remote device stream connection loss

Thu Dec 04, 2008 11:16 pm

Once I have an connected stream to a remote device, is there any way to immediately detect when the device connection has been lost. If I power down the remote device, it takes a long time for the stream to eventually throw an exception. A property or method on the RemoteDevice class would be useful.

Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Remote device stream connection loss

Thu Dec 04, 2008 11:37 pm

It's simply no other way of knowing this.
You have to attempt to connect to the device to know if it's not there and it's setting up that connection that is slow.
The same applies when you have a connection. The underlying stack probably tries to avoid dropping the connection since it isn't necessarily a power down but could just as well be the remote device being in "radio shadow".

I could point out though that running the application outside of a debugger is usually a lot faster. (if you are running it from within Visual Studio)


Return to “BlueTools”