Dela via


GattLocalCharacteristic Class

Definition

This class represents a local characteristic.

public ref class GattLocalCharacteristic sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GattLocalCharacteristic final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GattLocalCharacteristic final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GattLocalCharacteristic
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GattLocalCharacteristic
Public NotInheritable Class GattLocalCharacteristic
Inheritance
Object Platform::Object IInspectable GattLocalCharacteristic
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Remarks

Also see Send notifications to subscribed clients.

Properties

CharacteristicProperties

Gets the local characteristic properties.

Descriptors

Gets a vector list of all the descriptors for this local characteristic.

PresentationFormats

Gets the presentation formats for this local characteristic.

ReadProtectionLevel

Gets the read protection level of this local characteristic.

StaticValue

Gets the static value for this local GATT characteristic.

SubscribedClients

Gets a vector list of all clients that are subscribed to this local characteristic.

UserDescription

Gets the user-friendly description for this local characteristic.

Uuid

Gets the BluetoothSIG-defined UUID for this local characteristic.

WriteProtectionLevel

Gets the write protection level of this local characteristic.

Methods

CreateDescriptorAsync(Guid, GattLocalDescriptorParameters)

Creates descriptor for this local characteristic.

NotifyValueAsync(IBuffer, GattSubscribedClient)

Sends and notifies a GattSubscribedClient of a value.

NotifyValueAsync(IBuffer)

Send and notifies all subscribed clients a GattSubscribedClient of a value.

Events

ReadRequested

An event that is triggered when a GATT client requests a read operation.

SubscribedClientsChanged

An event that's raised when the collection of clients subscribed to this local characteristic changes (that is, clients are added to, or removed from, that collection).

WriteRequested

This is an event that is triggered when a write was requested.

Applies to

See also