private void DeviceWatcher_Added(DeviceWatcher sender, DeviceInformation args) { System.Diagnostics.Debug.WriteLine("BLEWATCHER_ADDED:: Name:" + args.Name + " Address:" + RXBluetoothUtils.GetAddressStringFromDeviceId(args.Id)); RXBluetoothDevice device = (BluetoothManager as BluetoothManager).GetBluetoothDeviceFromDeviceInformation(args); Added?.Invoke(this, device); }
private void BleDeviceWatcher_Updated(DeviceWatcher sender, DeviceInformationUpdate args) { System.Diagnostics.Debug.WriteLine("BLEWATCHER_UPDATED::Address:" + RXBluetoothUtils.GetAddressStringFromDeviceId(args.Id)); //throw new NotImplementedException(); }