@@ -300,14 +300,14 @@ class GattCharacteristic {
300
300
301
301
/* *
302
302
* @brief Creates a new GattCharacteristic using the specified 16-bit
303
- * UUID, value length, and properties.
303
+ * UUID, value length and properties.
304
304
*
305
305
* @param[in] uuid
306
306
* The UUID to use for this characteristic.
307
307
* @param[in] valuePtr
308
308
* The memory holding the initial value. The value is copied
309
309
* into the stack when the enclosing service is added, and
310
- * is thereafter maintained internally by the stack .
310
+ * the stack thereafter maintained it internally .
311
311
* @param[in] len
312
312
* The length in bytes of this characteristic's value.
313
313
* @param[in] maxLen
@@ -316,8 +316,8 @@ class GattCharacteristic {
316
316
* The 8-bit field containing the characteristic's properties.
317
317
* @param[in] descriptors
318
318
* A pointer to an array of descriptors to be included within
319
- * this characteristic. The memory for the descriptor array is
320
- * owned by the caller, and should remain valid at least until
319
+ * this characteristic. The caller owns the memory for the descriptor
320
+ * array, which remains valid at least until
321
321
* the enclosing service is added to the GATT table.
322
322
* @param[in] numDescriptors
323
323
* The number of descriptors in the previous array.
@@ -332,7 +332,7 @@ class GattCharacteristic {
332
332
* instantiating the service with the underlying BLE stack.
333
333
*
334
334
* @note A CCCD should not be allocated if either the notify or indicate
335
- * flag is set, as it is handled by the underlying BLE stack. In such
335
+ * flag is set because the underlying BLE stack handles it . In such
336
336
* a case, the param descriptors could be empty and the param
337
337
* numDescriptors equal to zero.
338
338
*/
@@ -372,7 +372,7 @@ class GattCharacteristic {
372
372
public:
373
373
/* *
374
374
* Set up callback that will be triggered before the GATT Client is allowed
375
- * to write this characteristic. The handler will determine the
375
+ * to write this characteristic. The handler determines the
376
376
* authorization reply for the write.
377
377
*
378
378
* @param[in] callback
@@ -384,7 +384,7 @@ class GattCharacteristic {
384
384
}
385
385
386
386
/* *
387
- * Same as GattCharacrteristic::setWriteAuthorizationCallback(), but allows
387
+ * Same as GattCharacrteristic::setWriteAuthorizationCallback(), but it allows
388
388
* the possibility to add an object reference and member function as
389
389
* handler for connection event callbacks.
390
390
*
@@ -403,7 +403,7 @@ class GattCharacteristic {
403
403
404
404
/* *
405
405
* Set up callback that will be triggered before the GATT Client is allowed
406
- * to read this characteristic. The handler will determine the
406
+ * to read this characteristic. The handler determines the
407
407
* authorization reply for the read.
408
408
*
409
409
* @param[in] callback
@@ -415,7 +415,7 @@ class GattCharacteristic {
415
415
}
416
416
417
417
/* *
418
- * Same as GattCharacrteristic::setReadAuthorizationCallback(), but allows
418
+ * Same as GattCharacrteristic::setReadAuthorizationCallback(), but it allows
419
419
* the possibility to add an object reference and member function as
420
420
* handler for connection event callbacks.
421
421
*
@@ -465,12 +465,12 @@ class GattCharacteristic {
465
465
* @return A GattAuthCallbackReply_t value indicating whether authorization
466
466
* is granted.
467
467
*
468
- * @note To authorize or deny the read the params->authorizationReply field
468
+ * @note To authorize or deny the read, the params->authorizationReply field
469
469
* should be set to AUTH_CALLBACK_REPLY_SUCCESS (authorize) or any
470
470
* of the AUTH_CALLBACK_REPLY_ATTERR_* values (deny).
471
471
*
472
472
* @note If the read is approved and params->data is unchanged (NULL),
473
- * the current characteristic value will be used.
473
+ * the current characteristic value is used.
474
474
*
475
475
* @note If the read is approved, a new value can be provided by setting
476
476
* the params->data pointer and params->len fields.
@@ -509,8 +509,7 @@ class GattCharacteristic {
509
509
*
510
510
* @return The value attribute handle.
511
511
*
512
- * @note The attribute handle is typically assigned by the underlying BLE
513
- * stack.
512
+ * @note The underlying BLE stack typically assigns the attribute handle.
514
513
*/
515
514
GattAttribute::Handle_t getValueHandle (void ) const {
516
515
return getValueAttribute ().getHandle ();
@@ -545,7 +544,7 @@ class GattCharacteristic {
545
544
}
546
545
547
546
/* *
548
- * Check whether read authorization is enabled i.e. check whether a
547
+ * Check whether read authorization is enabled. In other words, check whether a
549
548
* read authorization callback was previously registered. Refer to
550
549
* GattCharacteristic::setReadAuthorizationCallback().
551
550
*
@@ -556,7 +555,7 @@ class GattCharacteristic {
556
555
}
557
556
558
557
/* *
559
- * Check whether write authorization is enabled i.e. check whether a
558
+ * Check whether write authorization is enabled. In other words, check whether a
560
559
* write authorization callback was previously registered. Refer to
561
560
* GattCharacteristic::setWriteAuthorizationCallback().
562
561
*
@@ -600,7 +599,7 @@ class GattCharacteristic {
600
599
/* *
601
600
* The characteristic's descriptor attributes.
602
601
* This contains only CCCDs that has neither the notify nor the indicate
603
- * flag set, as those are handled by the underlying BLE stack.
602
+ * flag set, as the underlying BLE stack handles those .
604
603
*/
605
604
GattAttribute **_descriptors;
606
605
/* *
@@ -609,12 +608,12 @@ class GattCharacteristic {
609
608
uint8_t _descriptorCount;
610
609
611
610
/* *
612
- * Whether read authorization is enabled i.e. whether there is a registered
611
+ * Whether read authorization is enabled - in other words, whether there is a registered
613
612
* callback to determine read authorization reply.
614
613
*/
615
614
bool enabledReadAuthorization;
616
615
/* *
617
- * Whether write authorization is enabled i.e. whether there is a registered
616
+ * Whether write authorization is enabled - in other words, whether there is a registered
618
617
* callback to determine write authorization reply.
619
618
*/
620
619
bool enabledWriteAuthorization;
@@ -696,7 +695,7 @@ class WriteOnlyGattCharacteristic : public GattCharacteristic {
696
695
*
697
696
* @note Instances of WriteOnlyGattCharacteristic have variable length
698
697
* attribute value with maximum size equal to sizeof(T). For a fixed length
699
- * alternative use GattCharacteristic directly.
698
+ * alternative, use GattCharacteristic directly.
700
699
*/
701
700
WriteOnlyGattCharacteristic<T>(const UUID &uuid,
702
701
T *valuePtr,
@@ -735,7 +734,7 @@ class ReadWriteGattCharacteristic : public GattCharacteristic {
735
734
*
736
735
* @note Instances of ReadWriteGattCharacteristic have variable length
737
736
* attribute value with maximum size equal to sizeof(T). For a fixed length
738
- * alternative use GattCharacteristic directly.
737
+ * alternative, use GattCharacteristic directly.
739
738
*/
740
739
ReadWriteGattCharacteristic<T>(const UUID &uuid,
741
740
T *valuePtr,
@@ -775,7 +774,7 @@ class WriteOnlyArrayGattCharacteristic : public GattCharacteristic {
775
774
*
776
775
* @note Instances of WriteOnlyGattCharacteristic have variable length
777
776
* attribute value with maximum size equal to sizeof(T) * NUM_ELEMENTS.
778
- * For a fixed length alternative use GattCharacteristic directly.
777
+ * For a fixed length alternative, use GattCharacteristic directly.
779
778
*/
780
779
WriteOnlyArrayGattCharacteristic<T, NUM_ELEMENTS>(const UUID &uuid,
781
780
T valuePtr[NUM_ELEMENTS],
@@ -815,7 +814,7 @@ class ReadOnlyArrayGattCharacteristic : public GattCharacteristic {
815
814
*
816
815
* @note Instances of ReadOnlyGattCharacteristic have fixed length
817
816
* attribute value that equals sizeof(T) * NUM_ELEMENTS.
818
- * For a variable length alternative use GattCharacteristic directly.
817
+ * For a variable length alternative, use GattCharacteristic directly.
819
818
*/
820
819
ReadOnlyArrayGattCharacteristic<T, NUM_ELEMENTS>(const UUID &uuid,
821
820
T valuePtr[NUM_ELEMENTS],
@@ -856,7 +855,7 @@ class ReadWriteArrayGattCharacteristic : public GattCharacteristic {
856
855
*
857
856
* @note Instances of ReadWriteGattCharacteristic have variable length
858
857
* attribute value with maximum size equal to sizeof(T) * NUM_ELEMENTS.
859
- * For a fixed length alternative use GattCharacteristic directly.
858
+ * For a fixed length alternative, use GattCharacteristic directly.
860
859
*/
861
860
ReadWriteArrayGattCharacteristic<T, NUM_ELEMENTS>(const UUID &uuid,
862
861
T valuePtr[NUM_ELEMENTS],
0 commit comments