Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase mtu for ble_bas_peripheral for esp examples #235

Merged

Conversation

sjroe
Copy link
Contributor

@sjroe sjroe commented Jan 12, 2025

Fixes #229

const L2CAP_MTU: usize = 251;
/// Size of L2CAP packets
#[cfg(not(feature = "esp"))]
pub const L2CAP_MTU: usize = 128;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please note that this changes the behaviour for non-esp compilations. Here, the value used is 251, unlike in the place the code was copied from.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops. Reverted to 251 for non esp.

@jamessizeland
Copy link
Collaborator

/test

@jamessizeland jamessizeland merged commit 770b1e8 into embassy-rs:main Jan 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic on Peripheral::advertise when using esp32c6
4 participants