ArduinoBLE - bleCharacteristic.descriptor()

Get a BLEDescriptor that represents a characteristics Bluetooth® Low Energy 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 Bluetooth® Low Energy descriptor

Example


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