Skip to content

Commit

Permalink
Added initial MTU assignment prior to event handler registration
Browse files Browse the repository at this point in the history
  • Loading branch information
robbym committed Nov 12, 2024
1 parent 42efb72 commit 533ae40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/winrtble/ble/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ impl BLEDevice {
.ConnectionStatusChanged(&connection_status_handler)
.map_err(|_| Error::Other("Could not add connection status handler".into()))?;

max_pdu_size_changed(gatt_session.MaxPduSize().unwrap());
let max_pdu_size_changed_handler =
TypedEventHandler::new(move |sender: &Option<GattSession>, _| {
if let Some(sender) = sender {
Expand Down

0 comments on commit 533ae40

Please sign in to comment.