Skip to content

Commit f42f5fc

Browse files
committed
Improve documentation.
1 parent b3625e6 commit f42f5fc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

host/src/attribute.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,8 @@ impl<T: FromGatt> Characteristic<T> {
671671
///
672672
/// If the characteristic does not support indications, an error is returned.
673673
///
674-
/// This function does not block for the confirmation to the indication message.
674+
/// This function does not block for the confirmation to the indication message, if the client sends a confirmation
675+
/// this will be seen on the [GattConnection] as a [crate::att::AttClient::Confirmation] event.
675676
pub async fn indicate<P: PacketPool>(
676677
&self,
677678
connection: &GattConnection<'_, '_, P>,
@@ -694,10 +695,6 @@ impl<T: FromGatt> Characteristic<T> {
694695
};
695696
let pdu = gatt::assemble(connection, crate::att::AttServer::Unsolicited(uns))?;
696697
connection.send(pdu).await;
697-
698-
// This Indication message will get a conformation back in the form of AttClient::Confirmation(_)
699-
// We can't really call connection.next_gatt() here, because another future may already be blocked on
700-
// the next event on the connection, that future will get the confirmation instead of this one.
701698
Ok(())
702699
}
703700

0 commit comments

Comments
 (0)