@@ -99,7 +99,7 @@ class GattServer {
99
99
}
100
100
101
101
/*
102
- * The following functions are meant to be overridden in the platform-specific sub-class .
102
+ * The following functions are meant to be overridden in the platform-specific subclass .
103
103
*/
104
104
public:
105
105
@@ -129,7 +129,7 @@ class GattServer {
129
129
* @param[in,out] lengthP
130
130
* Length of the buffer being supplied. If the attribute
131
131
* value is longer than the size of the supplied buffer,
132
- * this variable will hold upon return the total attribute value length
132
+ * this variable holds upon return the total attribute value length
133
133
* (excluding offset). The application may use this
134
134
* information to allocate a suitable buffer size.
135
135
*
@@ -156,7 +156,7 @@ class GattServer {
156
156
* @param[in,out] lengthP
157
157
* Length of the buffer being supplied. If the attribute
158
158
* value is longer than the size of the supplied buffer,
159
- * this variable will hold upon return the total attribute value length
159
+ * this variable holds upon return the total attribute value length
160
160
* (excluding offset). The application may use this
161
161
* information to allocate a suitable buffer size.
162
162
*
@@ -287,12 +287,12 @@ class GattServer {
287
287
}
288
288
289
289
/*
290
- * APIs with non-virtual implementations.
290
+ * APIs with nonvirtual implementations.
291
291
*/
292
292
public:
293
293
/* *
294
294
* Add a callback for the GATT event DATA_SENT (which is triggered when
295
- * updates are sent out by GATT in the form of notifications).
295
+ * GATT sends updates in the form of notifications).
296
296
*
297
297
* @param[in] callback
298
298
* Event handler being registered.
@@ -309,7 +309,7 @@ class GattServer {
309
309
}
310
310
311
311
/* *
312
- * Same as GattServer::onDataSent(), but allows the possibility to add an object
312
+ * Same as GattServer::onDataSent() but it allows the possibility to add an object
313
313
* reference and member function as handler for DATA_SENT event
314
314
* callbacks.
315
315
*
@@ -359,8 +359,8 @@ class GattServer {
359
359
}
360
360
361
361
/* *
362
- * Same as GattServer::onDataWritten(), but allows the possibility to add an object
363
- * reference and member function as handler for data written event
362
+ * Same as GattServer::onDataWritten() but it allows the possibility to add an object
363
+ * reference and member function as a handler for data written event
364
364
* callbacks.
365
365
*
366
366
* @param[in] objPtr
@@ -389,8 +389,8 @@ class GattServer {
389
389
}
390
390
391
391
/* *
392
- * Setup a callback to be invoked on the peripheral when an attribute is
393
- * being read by a remote client .
392
+ * Set up a callback to be invoked on the peripheral when a remote client is
393
+ * reading an attribute .
394
394
*
395
395
* @param[in] callback
396
396
* Event handler being registered.
@@ -422,7 +422,7 @@ class GattServer {
422
422
}
423
423
424
424
/* *
425
- * Same as GattServer::onDataRead(), but allows the possibility to add an object
425
+ * Same as GattServer::onDataRead() but it allows the possibility to add an object
426
426
* reference and member function as handler for data read event
427
427
* callbacks.
428
428
*
@@ -457,16 +457,16 @@ class GattServer {
457
457
}
458
458
459
459
/* *
460
- * Setup a callback to be invoked to notify the user application that the
461
- * GattServer instance is about to shutdown (possibly as a result of a call
460
+ * Set up a callback to be invoked to notify the user application that the
461
+ * GattServer instance is about to shut down (possibly as a result of a call
462
462
* to BLE::shutdown()).
463
463
*
464
464
* @param[in] callback
465
465
* Event handler being registered.
466
466
*
467
467
* @note It is possible to chain together multiple onShutdown callbacks
468
468
* (potentially from different modules of an application) to be notified
469
- * before the GattServer is shutdown .
469
+ * before the GattServer is shut down .
470
470
*
471
471
* @note It is also possible to set up a callback into a member function of
472
472
* some object.
@@ -478,7 +478,7 @@ class GattServer {
478
478
}
479
479
480
480
/* *
481
- * Same as GattServer::onShutdown(), but allows the possibility to add an object
481
+ * Same as GattServer::onShutdown() but it allows the possibility to add an object
482
482
* reference and member function as handler for shutdown event
483
483
* callbacks.
484
484
*
@@ -616,13 +616,13 @@ class GattServer {
616
616
public:
617
617
/* *
618
618
* Notify all registered onShutdown callbacks that the GattServer is
619
- * about to be shutdown and clear all GattServer state of the
619
+ * about to be shut down and clear all GattServer state of the
620
620
* associated object.
621
621
*
622
622
* This function is meant to be overridden in the platform-specific
623
- * sub-class . Nevertheless, the sub-class is only expected to reset its
624
- * state and not the data held in GattServer members. This shall be achieved
625
- * by a call to GattServer::reset() from the sub-class ' reset()
623
+ * subclass . Nevertheless, the subclass only resets its
624
+ * state and not the data held in GattServer members. This is achieved
625
+ * by a call to GattServer::reset() from the subclass ' reset()
626
626
* implementation.
627
627
*
628
628
* @return BLE_ERROR_NONE on success.
0 commit comments