diff options
author | Albert Skog <mail@albertskog.se> | 2021-10-15 10:12:17 +0200 |
---|---|---|
committer | Albert Skog <mail@albertskog.se> | 2021-10-15 10:12:17 +0200 |
commit | ae537dcbf67dc2366574c583740b2c7823c733d1 (patch) | |
tree | 18e0a4962e7c3ca762a09e34a368944565782b08 /nrf-softdevice | |
parent | 2921750bd85d1890ae294fc67f80ff436eb88e8e (diff) | |
download | nrf-softdevice-ae537dcbf67dc2366574c583740b2c7823c733d1.zip |
add comments
Diffstat (limited to 'nrf-softdevice')
-rw-r--r-- | nrf-softdevice/src/ble/gatt_server.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nrf-softdevice/src/ble/gatt_server.rs b/nrf-softdevice/src/ble/gatt_server.rs index 325752c..63c65a6 100644 --- a/nrf-softdevice/src/ble/gatt_server.rs +++ b/nrf-softdevice/src/ble/gatt_server.rs @@ -249,6 +249,7 @@ impl From<DisconnectedError> for NotifyValueError { } } +/// Multiple notifications can be queued. Will fail when the queue is full. pub fn notify_value(conn: &Connection, handle: u16, val: &[u8]) -> Result<(), NotifyValueError> { let conn_handle = conn.with_state(|state| state.check_connected())?; @@ -285,6 +286,7 @@ impl From<DisconnectedError> for IndicateValueError { } } +/// This will fail if an indication is already in progress pub fn indicate_value( conn: &Connection, handle: u16, |