@@ -112,6 +112,8 @@ class GattServer {
112
112
*
113
113
* @param connectionHandle The handle of the connection that changed the size.
114
114
* @param attMtuSize
115
+ *
116
+ * @see negotiateAttMtu()
115
117
*/
116
118
virtual void onAttMtuChange (
117
119
ble::connection_handle_t connectionHandle,
@@ -162,14 +164,14 @@ class GattServer {
162
164
163
165
/* *
164
166
* Function invoked when the GattServer instance is about
165
- * to be shut down. This can result in a call to reset() or BLE::reset().
167
+ * to be shut down. This can be the result of a call to reset() or BLE::reset().
166
168
*/
167
169
virtual void onShutdown (const GattServer &server) {
168
170
(void )server;
169
171
}
170
172
171
173
/* *
172
- * Function invoked when the client has subscribed to characteristic updates
174
+ * Function invoked when the client has subscribed to characteristic updates.
173
175
*
174
176
* @note params has a temporary scope and should be copied by the
175
177
* application if needed later
@@ -179,7 +181,7 @@ class GattServer {
179
181
}
180
182
181
183
/* *
182
- * Function invoked when the client has unsubscribed to characteristic updates
184
+ * Function invoked when the client has unsubscribed from characteristic updates.
183
185
*
184
186
* @note params has a temporary scope and should be copied by the
185
187
* application if needed later
@@ -303,9 +305,11 @@ class GattServer {
303
305
* GattServer state.
304
306
*
305
307
* @note This function is meant to be overridden in the platform-specific
306
- * subclass. Overides must call the parent function before any cleanup.
308
+ * subclass. Overrides must call the parent function before any cleanup.
307
309
*
308
310
* @return BLE_ERROR_NONE on success.
311
+ *
312
+ * @see EventHandler::onShutdown()
309
313
*/
310
314
ble_error_t reset ();
311
315
@@ -401,6 +405,9 @@ class GattServer {
401
405
*
402
406
* @return BLE_ERROR_NONE if the attribute value has been successfully
403
407
* updated.
408
+ *
409
+ * @see EventHandler::onDataSent(), this will only be triggered if there are
410
+ * client subscribed and the localOnly parameter is set to false.
404
411
*/
405
412
ble_error_t write (
406
413
GattAttribute::Handle_t attributeHandle,
@@ -429,6 +436,9 @@ class GattServer {
429
436
*
430
437
* @return BLE_ERROR_NONE if the attribute value has been successfully
431
438
* updated.
439
+ *
440
+ * @see EventHandler::onDataSent(), this will only be triggered if there are
441
+ * client subscribed and the localOnly parameter is set to false.
432
442
*/
433
443
ble_error_t write (
434
444
ble::connection_handle_t connectionHandle,
@@ -448,6 +458,8 @@ class GattServer {
448
458
*
449
459
* @return BLE_ERROR_NONE if the connection and handle are found. False
450
460
* otherwise.
461
+ *
462
+ * @see EventHandler::onDataSent()
451
463
*/
452
464
ble_error_t areUpdatesEnabled (
453
465
const GattCharacteristic &characteristic,
@@ -466,6 +478,8 @@ class GattServer {
466
478
*
467
479
* @return BLE_ERROR_NONE if the connection and handle are found. False
468
480
* otherwise.
481
+ *
482
+ * @see EventHandler::onDataSent()
469
483
*/
470
484
ble_error_t areUpdatesEnabled (
471
485
ble::connection_handle_t connectionHandle,
0 commit comments