Skip to content

Commit

Permalink
feat: expose mtu to user applications. (#233)
Browse files Browse the repository at this point in the history
add function to get the agreed upon att mtu from a connection after the handshake has occurred
  • Loading branch information
pperanich authored Jan 11, 2025
1 parent cf71ade commit 5baa90b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions host/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ impl<'d> Connection<'d> {
self.manager.handle(self.index)
}

/// Expose the att_mtu.
pub fn att_mtu(&self) -> u16 {
self.get_att_mtu()
}

/// The connection role for this connection.
pub fn role(&self) -> LeConnRole {
self.manager.role(self.index)
Expand Down

0 comments on commit 5baa90b

Please sign in to comment.