Skip to content

Cannot get RequestDeviceAsync with BluetoothLEScanFilter working #454

@sfrase59

Description

@sfrase59

I am getting my full list of devices instead of the filtered list.
the guid below is obviously not the service guid but, I know i am using the correct guid.

Guid MSG_SERVICE = Guid.Parse("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
BluetoothUuid bluetoothServiceUuid = BluetoothUuid.FromGuid(MSG_SERVICE);
BluetoothLEScanFilter bluetoothLEScanFilter = new BluetoothLEScanFilter();
bluetoothLEScanFilter.Services.Add(bluetoothServiceUuid);
RequestDeviceOptions requestDeviceOptions = new RequestDeviceOptions();
requestDeviceOptions.Filters.Clear();
requestDeviceOptions.Filters.Add(bluetoothLEScanFilter);

devicePicked = await Bluetooth.RequestDeviceAsync(requestDeviceOptions);

I am looking for help for anyone so inclined.
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions