getSystemDevices static method
Get connected devices to the system (connected by any app).
Use withServices to filter devices by services.
On Apple, withServices is required to get any connected devices. If not passed, several 18XX generic services will be set by default.
On Android, Linux and Windows, if withServices is used, then internally all services will be discovered for each device first (either by connecting or by using cached services).
Not supported on Web.
Implementation
static Future<List<BleDevice>> getSystemDevices({
List<String>? withServices,
Duration? timeout,
}) async {
return await _bleCommandQueue.queueCommand(
() => _platform.getSystemDevices(withServices?.toValidUUIDList()),
timeout: timeout,
);
}