Cancel DiscoverDevicesAsync

Topics: Bluetooth - BlueSoliel, Bluetooth - Microsoft, Bluetooth - Other, Bluetooth - Stonestreet, Bluetooth - Widcomm/Broadcom
Apr 9, 2012 at 3:23 PM

Hello, I am using 32feet in a new project.  Everything so far works great, except for one issue.  How do you stop DiscoverDevicesAsync?  

For example, suppose my application starts a discovery via DiscoverDevicesAsync. Then the user wants to close the application.  How am I supposed to close the application if DiscoverDevicesAsync is still working?  I can't find a way to end it.

Thank you.

Apr 10, 2012 at 8:39 AM

As far as I know it won't keep the program alive, so just just ignore it. If that doesn't work let me know.

Apr 10, 2012 at 1:23 PM

Does it make sense then to call Dispose on the BluetoothComponent while the async discovery is still in process?
Apr 18, 2012 at 5:57 PM

A wee bit late...  Yes do call Dispose, but I think in most cases that its not all fully 'wired-up' as not all stacks have a 'cancel inquiry' function.

Let me know if you find/have found an issue, and I'll look at it.