Posts: 52
Joined: Fri Jan 25, 2008 8:12 pm

DiscoveryPending. How does it work?

Sat Jul 11, 2009 2:36 am

from documentation:

Returns whether or not a discovery is currently pending. This is true if and only if the network instance is currently scanning the proximity for devices. Whenever a discovery is pending, a call to DiscoverDevices will result in an exception. Also, if a discovery is pending, any service discoveries will not be executed immediately, but will instead be queued until the device discovery has completed.

I call this code:
if (!m_network.DiscoveryPending)
every 1 sec using timer
But always line "m_network.DiscoverDevicesAsync()" is called. Why?

Return to “BlueTools”