GattDescriptor GattDescriptor GattDescriptor GattDescriptor GattDescriptor Class

Definition

Represents a Descriptor of a GATT Characteristic. The GattDescriptor object represents a GATT Descriptor of a particular characteristic, and is obtained from the Descriptors property of the GattCharacteristic object.

public : sealed class GattDescriptor : IGattDescriptor, IGattDescriptor2
struct winrt::Windows::Devices::Bluetooth::GenericAttributeProfile::GattDescriptor : IGattDescriptor, IGattDescriptor2
public sealed class GattDescriptor : IGattDescriptor, IGattDescriptor2
Public NotInheritable Class GattDescriptor Implements IGattDescriptor, IGattDescriptor2
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
bluetooth

Properties

AttributeHandle AttributeHandle AttributeHandle AttributeHandle AttributeHandle

Gets the GATT Attribute handle used to uniquely identify this attribute on the GATT Server Device.

ProtectionLevel ProtectionLevel ProtectionLevel ProtectionLevel ProtectionLevel

Gets or sets the desired GATT security options for over the air communication with the device.

Windows will negotiate the maximum security possible with the device as part of the pairing process, and specifying a lower level of security won’t degrade the existing security level.

Uuid Uuid Uuid Uuid Uuid

Gets the GATT Descriptor UUID for this GattDescriptor.

Methods

ConvertShortIdToUuid(UInt16) ConvertShortIdToUuid(UInt16) ConvertShortIdToUuid(UInt16) ConvertShortIdToUuid(UInt16) ConvertShortIdToUuid(UInt16)

Converts a Bluetooth SIG defined short Id to a full GATT UUID.

ReadValueAsync() ReadValueAsync() ReadValueAsync() ReadValueAsync() ReadValueAsync()

Performs a Descriptor Value read from a value cache maintained by Windows.

ReadValueAsync(BluetoothCacheMode) ReadValueAsync(BluetoothCacheMode) ReadValueAsync(BluetoothCacheMode) ReadValueAsync(BluetoothCacheMode) ReadValueAsync(BluetoothCacheMode)

Performs a Descriptor Value read either from the value cache maintained by Windows, or directly from the device.

WriteValueAsync(IBuffer) WriteValueAsync(IBuffer) WriteValueAsync(IBuffer) WriteValueAsync(IBuffer) WriteValueAsync(IBuffer)

Performs a Descriptor Value write to a Bluetooth LE device.

WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer) WriteValueWithResultAsync(IBuffer)

Performs a Descriptor Value write to a Bluetooth LE device.