docs/library: Add gatts_indicate() doc to ubluetooth.rst.

Also clarify behavior of `gatts_notify` and add some TODOs about adding an
event for indication acknowledgement.
This commit is contained in:
Jim Mussared
2020-07-17 15:18:32 +10:00
committed by Damien George
parent 89a95b7c85
commit b7698841b2
3 changed files with 32 additions and 15 deletions

View File

@@ -603,6 +603,8 @@ int mp_bluetooth_gatts_indicate(uint16_t conn_handle, uint16_t value_handle) {
if (!mp_bluetooth_is_active()) {
return ERRNO_BLUETOOTH_NOT_ACTIVE;
}
// TODO: catch BLE_GAP_EVENT_NOTIFY_TX to raise an event for completed
// indication transaction.
return ble_hs_err_to_errno(ble_gattc_indicate(conn_handle, value_handle));
}