ArduinoBLE - descriptorCount

Query the number of BLE descriptors discovered for the characteristic.

Syntax

bleCharacteristic.descriptorCount()

Parameters

None

Returns

The number of BLE 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);

    // ...
  }