Ejemplo n.º 1
0
        private static async Task <BluetoothLEScan> DoRequestLEScan(BluetoothLEScanFilter filter)
        {
            if (watcher == null)
            {
                watcher           = new BluetoothLEAdvertisementWatcher(filter);
                watcher.Received += Watcher_Received;
            }
            else
            {
                watcher.AdvertisementFilter = filter;
            }

            watcher.Start();

            return(watcher);
        }
Ejemplo n.º 2
0
 private static async Task <BluetoothLEScan> DoRequestLEScan(BluetoothLEScanFilter filter)
 {
     return(null);
 }
Ejemplo n.º 3
0
 public static Task <BluetoothLEScan> RequestLEScanAsync(BluetoothLEScanFilter filter)
 {
     return(DoRequestLEScan(filter));
 }