Share via


GattDeviceService.GetDeviceSelectorFromUuid(Guid) Method

Definition

Creates a suitable AQS Filter string for use with the CreateWatcher method, from a Bluetooth service UUID.

public:
 static Platform::String ^ GetDeviceSelectorFromUuid(Platform::Guid serviceUuid);
 static winrt::hstring GetDeviceSelectorFromUuid(winrt::guid const& serviceUuid);
public static string GetDeviceSelectorFromUuid(Guid serviceUuid);
function getDeviceSelectorFromUuid(serviceUuid)
Public Shared Function GetDeviceSelectorFromUuid (serviceUuid As Guid) As String

Parameters

serviceUuid
Guid

Platform::Guid

winrt::guid

A 128-bit Bluetooth GATT Service UUID, represented as a standard GUID object.

Returns

String

Platform::String

winrt::hstring

A suitable AQS Selector String which can be passed as a parameter to the CreateWatcher method, in order to retrieve a GATT service instance path.

Windows requirements

App capabilities
bluetooth

Applies to