Skip to content

Commit

Permalink
Retrieve the ATT MTU from the connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Oct 10, 2024
1 parent 50c7582 commit 6e3bd7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ where
handle,
offset,
len,
mtu,
} = event
{
if handle == c1 {
Expand All @@ -331,7 +330,7 @@ where
callback(GattPeripheralEvent::Write {
address: to_bt_addr(&connection.peer_address()),
data: &data[offset as usize..len as usize],
gatt_mtu: Some(mtu),
gatt_mtu: Some(connection.att_mtu()),
});
})
.unwrap(); // TODO
Expand Down

0 comments on commit 6e3bd7f

Please sign in to comment.