I am trying to write an application that reads all MAC addresses in Windows 10 IoT. These lines of code return all paired devices, even if they do not turn on.
var selector = BluetoothDevice.GetDeviceSelector(); var devices = await DeviceInformation.FindAllAsync(selector); listBox.Items.Add(devices.Count); foreach (var device in devices) { listBox.Items.Add(device.Id); }
And I also found this line of code
await DeviceInformation.FindAllAsync(RfcommDeviceService.GetDeviceSelector(RfcommServiceId.SerialPort));
This returns null. Is there a way to scan all MAC addresses in a universal Windows 10 application?
source share