How do you get a BLE Advertisment callback in a desktop .NET app?
I am trying to get a BLE advertisement callback from a .NET Windows desktop application. I am able to call into the APIs, however the Received event is never called from the OS in a WPF or Command line application. I do get events when the code is called from a Unit Test in VS2015, or universal Windows app. However, I need to do other things not available in universal Windows. Here is the code: using Windows.Devices.Bluetooth.Advertisement; public static void ScanForAdvertisments() { mWatcher = new BluetoothLEAdvertisementWatcher(); mWatcher.Received += OnAdvertismentReceived; mWatcher