Represents a Characteristic of a GATT service. The GattCharacteristic object represents a GATT Characteristic of a particular service, and is obtained from the Characteristics property of the GattDeviceService object.
public : sealed class GattCharacteristic : IGattCharacteristic, IGattCharacteristic2, IGattCharacteristic3
struct winrt::Windows::Devices::Bluetooth::GenericAttributeProfile::GattCharacteristic : IGattCharacteristic, IGattCharacteristic2, IGattCharacteristic3
public sealed class GattCharacteristic : IGattCharacteristic, IGattCharacteristic2, IGattCharacteristic3
Public NotInheritable Class GattCharacteristic Implements IGattCharacteristic, IGattCharacteristic2, IGattCharacteristic3
// This class does not provide a public constructor.
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
Windows.Foundation.UniversalApiContract (introduced v1)
|AttributeHandle AttributeHandle AttributeHandle AttributeHandle AttributeHandle||
Gets the handle used to uniquely identify GATT-based characteristic attributes as declared on the Bluetooth LE device.
|CharacteristicProperties CharacteristicProperties CharacteristicProperties CharacteristicProperties CharacteristicProperties||
Gets the GATT characteristic properties, as defined by the GATT profile.
If the ExtendedProperties flag is present it also represents the properties of the Extended Characteristic Properties Descriptor.
|PresentationFormats PresentationFormats PresentationFormats PresentationFormats PresentationFormats||
Gets the list of presentation format descriptors associated with this GattCharacteristic, in the order specified by the Aggregate Format Descriptor.
The list shall be empty if no PresentationFormat or Aggregate Format descriptors are found.
|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.
|Service Service Service Service Service||
Gets the GattDeviceService of which this characteristic is a member.
|UserDescription UserDescription UserDescription UserDescription UserDescription||
Get the user friendly description for this GattCharacteristic, if the User Description Descriptor is present, otherwise this will be an empty string.
|Uuid Uuid Uuid Uuid Uuid||
Gets the GATT Characteristic UUID for this GattCharacteristic.
|ValueChanged ValueChanged ValueChanged ValueChanged ValueChanged||
An App can register an event handler in order to receive events when notification or indications are received from a device, after setting the Client Characteristic Configuration Descriptor.