@@ -315,12 +315,17 @@ class GattCharacteristic {
315
315
* @param[in] hasVariableLen
316
316
* Whether the attribute's value length changes over time.
317
317
*
318
- * @note The UUID value must be unique in the service and is normally >1.
318
+ * @note The UUID value must be unique in the service and is normally >1.
319
319
*
320
320
* @note If valuePtr == NULL, length == 0, and properties == READ
321
321
* for the value attribute of a characteristic, then that particular
322
322
* characteristic may be considered optional and dropped while
323
323
* instantiating the service with the underlying BLE stack.
324
+ *
325
+ * @note A CCCD should not be allocated if either the notify or indicate
326
+ * flag is set, as it is handled by the underlying BLE stack. In such
327
+ * a case, the param descriptors could be empty and the param
328
+ * numDescriptors equal to zero.
324
329
*/
325
330
GattCharacteristic (const UUID &uuid,
326
331
uint8_t *valuePtr = NULL ,
@@ -584,6 +589,8 @@ class GattCharacteristic {
584
589
SecurityManager::SecurityMode_t _requiredSecurity;
585
590
/* *
586
591
* The characteristic's descriptor attributes.
592
+ * This contains only CCCDs that has neither the notify nor the indicate
593
+ * flag set, as thoses are handled by the underlying BLE stack.
587
594
*/
588
595
GattAttribute **_descriptors;
589
596
/* *
0 commit comments