ArduinoBLE - bleCharacteristic.descriptorCount()

Query the number of Bluetooth® Low Energy descriptors discovered for the characteristic.

Syntax

bleCharacteristic.descriptorCount()

Parameters

None

Returns

  • The number of Bluetooth® Low Energy descriptors discovered for the characteristic

Example


 // loop the descriptors of the characteristic and explore each
  for (int i = 0; i < characteristic.descriptorCount(); i++) {
    BLEDescriptor descriptor = characteristic.descriptor(i);

    // ...
  }