I instigate a bluetooth search, and once the device I am looking for appears, I cancel the discovery and connect to it.
But later on when I disconnect from the connected device (or the connected device powers itself off, terminating the connection), I find myself in the DiscoveryFinished event.
Is there a way to prevent this, or a way to detect that discovery was cancelled once I am in the DiscoveryFinished event?
I could set my own flag, but I've got so many flags already, so I wondered.
But later on when I disconnect from the connected device (or the connected device powers itself off, terminating the connection), I find myself in the DiscoveryFinished event.
Is there a way to prevent this, or a way to detect that discovery was cancelled once I am in the DiscoveryFinished event?
I could set my own flag, but I've got so many flags already, so I wondered.