Reference   Language | Libraries | Comparison | Changes

ArduinoBLE : BLECharacteristic class

descriptorCount

Description

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);

    // ...
  }

See Also




Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.