@@ -122,8 +122,9 @@ class GattServer {
122122 }
123123
124124 /* *
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.
127128 *
128129 * @note params has a temporary scope and should be copied by the
129130 * application if needed later
@@ -188,12 +189,13 @@ class GattServer {
188189 }
189190
190191 /* *
191- * Function invoked when an ACK has been received for an
192- * indication sent to the client.
192+ * Event not used.
193193 *
194194 * @note params has a temporary scope and should be copied by the
195195 * application if needed later
196196 */
197+ MBED_DEPRECATED_SINCE (" mbed-os-6.11.0" , " This event is never triggered. Indication triggers onDataSent"
198+ " when confirmation is received." )
197199 virtual void onConfirmationReceived (const GattConfirmationReceivedCallbackParams ¶ms) {
198200 (void )params;
199201 }
@@ -274,7 +276,7 @@ class GattServer {
274276 * Event handler that handles subscription to characteristic updates,
275277 * unsubscription from characteristic updates and notification confirmation.
276278 *
277- * @see onUpdatesEnabled() onUpdateDisabled() onConfirmationReceived()
279+ * @see onUpdatesEnabled() onUpdateDisabled()
278280 */
279281 typedef FunctionPointerWithContext<GattAttribute::Handle_t> EventCallback_t;
280282
@@ -705,7 +707,8 @@ class GattServer {
705707 * @param[in] callback Event handler being registered.
706708 */
707709 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." )
709712 void onConfirmationReceived(EventCallback_t callback);
710713
711714#if !defined(DOXYGEN_ONLY)
0 commit comments