Skip to content

Commit

Permalink
Increase mtu for ble_bas_peripheral for esp examples (#235)
Browse files Browse the repository at this point in the history
* Increase mtu for ble_bas_peripheral for esp examples
  • Loading branch information
sjroe authored Jan 12, 2025
1 parent 5baa90b commit 770b1e8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/apps/src/ble_bas_peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ use embassy_futures::{join::join, select::select};
use embassy_time::Timer;
use trouble_host::prelude::*;

/// Size of L2CAP packets (ATT MTU is this - 4)
const L2CAP_MTU: usize = 251;
/// Size of L2CAP packets
#[cfg(not(feature = "esp"))]
pub const L2CAP_MTU: usize = 251;
#[cfg(feature = "esp")]
// Some esp chips only accept an MTU >= 1017
pub const L2CAP_MTU: usize = 1017;

/// Max number of connections
const CONNECTIONS_MAX: usize = 1;
Expand Down

0 comments on commit 770b1e8

Please sign in to comment.