Skip to content

Commit 753e0cc

Browse files
committed
doc: improve att can send now explanation
1 parent bc66a7d commit 753e0cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/manual/docs-template/profiles.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,8 +630,8 @@ identify a Characteristic without hard-coding the attribute ID, the GATT
630630
compiler creates a list of defines in the generated \*.h file.
631631

632632
Similar to other protocols, it might be not possible to send any time.
633-
To send a Notification, you can call *att_server_request_can_send_now*
634-
to receive a ATT_EVENT_CAN_SEND_NOW event.
633+
To send a Notification, you can call *att_server_request_to_send_notification*
634+
to request a callback, when yuo can send the Notification.
635635

636636
If your application cannot handle an ATT Read Request in the *att_read_callback*
637637
in some situations, you can enable support for this by adding ENABLE_ATT_DELAYED_RESPONSE
@@ -718,7 +718,7 @@ Step 4:
718718
As described [above](#sec:GATTServerProfiles) all read/write requests are handled by the application.
719719
To implement the new services as a reusable module, it's necessary to get access to all read/write requests related to this service.
720720

721-
For this, the ATT DB allows to register read/write callbacks for a specific handle range with *att_server_register_can_send_now_callback()*.
721+
For this, the ATT DB allows to register read/write callbacks for a specific handle range with *att_server_register_service_handler()*.
722722

723723
Since the handle range depends on the application's .gatt file, the handle range for Primary and Secondary Services can be queried with *gatt_server_get_get_handle_range_for_service_with_uuid16*.
724724

0 commit comments

Comments
 (0)