Class GattDescriptor
- Assembly
- nanoFramework.Device.Bluetooth.dll
Represents a Descriptor of a GATT Characteristic. The GattDescriptor object represents a GATT Descriptor of a particular characteristic, it is obtained from the Descriptors property of the GattCharacteristic object.
public class GattDescriptor : IGattAttribute
- Inheritance
-
GattDescriptor
- Implements
- Inherited Members
- Extension Methods
Properties
AttributeHandle
Gets the GATT Attribute handle used to uniquely identify this attribute on the GATT Server Device.
public ushort AttributeHandle { get; }
Property Value
ProtectionLevel
Gets or sets the desired GATT security options for over the air communication with the device.
public GattProtectionLevel ProtectionLevel { get; set; }
Property Value
Uuid
Gets the GATT Descriptor UUID for this GattDescriptor.
public Guid Uuid { get; }
Property Value
Methods
ReadValue()
Performs a Descriptor Value read.
public GattReadResult ReadValue()
Returns
- GattReadResult
The object required to manage the asynchronous operation, which, upon completion, returns a GattReadResult object, which in turn contains the completion status of the asynchronous operation and, if successful, the data read from the device.
WriteValue(Buffer)
Performs a Descriptor Value write to a Bluetooth LE device.
public GattCommunicationStatus WriteValue(Buffer value)
Parameters
value
BufferA Buffer object which contains the data to be written to the Bluetooth LE device.
Returns
- GattCommunicationStatus
Returns the status with which the operation completed.
WriteValueWithResult(Buffer)
Performs a Descriptor Value write to a Bluetooth LE device.
public GattWriteResult WriteValueWithResult(Buffer value)
Parameters
value
BufferA Buffer object which contains the data to be written to the Bluetooth LE device.
Returns
- GattWriteResult
A GattWriteResult.