ArduinoBLE - descriptor()

Get a BLEDescriptor that represents a characteristics BLE descriptor.

Syntax

bleCharacteristic.descriptor(index)
bleCharacteristic.descriptor(uuid)
bleCharacteristic.descriptor(uuid, index)

Parameters

index: index of descriptor uuid: uuid (as a String)

Returns

BLEDescriptor that represents a characteristics BLE descriptor

Example


  if (characteristic.hasDescriptor("2901")) {
    Serial.println("characteristic has description descriptor");
  }