@@ -122,8 +122,9 @@ class GattServer {
122
122
}
123
123
124
124
/* *
125
- * Function invoked when the server has sent data to a client as
126
- * part of a notification/indication.
125
+ * Function invoked when the server has sent data to a client. For
126
+ * notifications this is triggered when data is sent, for indications
127
+ * it's only triggered when the confirmation has been received.
127
128
*
128
129
* @note params has a temporary scope and should be copied by the
129
130
* application if needed later
@@ -188,12 +189,13 @@ class GattServer {
188
189
}
189
190
190
191
/* *
191
- * Function invoked when an ACK has been received for an
192
- * indication sent to the client.
192
+ * Event not used.
193
193
*
194
194
* @note params has a temporary scope and should be copied by the
195
195
* application if needed later
196
196
*/
197
+ MBED_DEPRECATED_SINCE (" mbed-os-6.11.0" , " This event is never triggered. Indication triggers onDataSent"
198
+ " when confirmation is received." )
197
199
virtual void onConfirmationReceived (const GattConfirmationReceivedCallbackParams ¶ms) {
198
200
(void )params;
199
201
}
@@ -274,7 +276,7 @@ class GattServer {
274
276
* Event handler that handles subscription to characteristic updates,
275
277
* unsubscription from characteristic updates and notification confirmation.
276
278
*
277
- * @see onUpdatesEnabled() onUpdateDisabled() onConfirmationReceived()
279
+ * @see onUpdatesEnabled() onUpdateDisabled()
278
280
*/
279
281
typedef FunctionPointerWithContext<GattAttribute::Handle_t> EventCallback_t;
280
282
@@ -705,7 +707,8 @@ class GattServer {
705
707
* @param[in] callback Event handler being registered.
706
708
*/
707
709
MBED_DEPRECATED_SINCE (" mbed-os-6.3.0" , " Individual callback-registering functions have"
708
- " been replaced by GattServer::setEventHandler. Use that function instead." )
710
+ " been replaced by an event handler. Indication confirmation triggers"
711
+ " GattServer::onDataSent event instead." )
709
712
void onConfirmationReceived(EventCallback_t callback);
710
713
711
714
#if !defined(DOXYGEN_ONLY)
0 commit comments