Class: Toybox.BluetoothLowEnergy.Descriptor

Overview

Encapsulates a Descriptor from on a Characteristic

Since:

API Level 3.1.0

Instance Method Summary collapse

Instance Method Details

getCharacteristic() as BluetoothLowEnergy.Characteristic

Retrieves the Descriptors Characteristic

Retrieve the Characteristic that this descriptor belongs to

Returns:

Since:

API Level 3.1.0

getUuid() as BluetoothLowEnergy.Uuid

Returns the UUID of the Descriptor

Returns:

Since:

API Level 3.1.0

requestRead() as Void

Requests a read operation on the descriptor

Once the operation is completed, onDescriptorRead() will be called on the registered BleDelegate with the status of the operation

Since:

API Level 3.1.0

requestWrite(value as Lang.ByteArray) as Void

Requests a write operation

Writes the locally stored value to the remote descriptor.

Once the operation is completed, onDescriptorWrite() will be called on the registered BleDelegate with the status of the operation

Support for long writes is not implemented. Requesting a write on a characteristic longer than 20 bytes will cause an InvalidRequestException

Parameters:

Since:

API Level 3.1.0

Throws:


Generated Sep 23, 2024, 3:32:48 PM