File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments