Overview
The Windows.Devices namespace provides classes for discovering, enumerating, and communicating with hardware devices from Universal Windows Platform (UWP) apps. It includes APIs for Bluetooth, Wi‑Fi, Serial, and custom device protocols.
API Reference
Classes
Enums
Structures
Sample Code
// Enumerate all Bluetooth LE devices
using Windows.Devices.Bluetooth;
using Windows.Devices.Enumeration;
async void ListBleDevices()
{
var selector = BluetoothLEDevice.GetDeviceSelector();
var devices = await DeviceInformation.FindAllAsync(selector);
foreach (var d in devices)
{
var bleDevice = await BluetoothLEDevice.FromIdAsync(d.Id);
System.Diagnostics.Debug.WriteLine($"{bleDevice.Name} - RSSI: {bleDevice.SignalStrength} dBm");
}
}
Community Discussion
Loading recent comments...