Skip to content

Using default MTU value warning when using client.mtu_size() #1166

Answered by dlech
ChrisM0815 asked this question in Q&A
Discussion options

You must be logged in to vote

If possible, you should use BleakGATTCharacteristic.max_write_without_response_size instead of BleakClient.mtu_size.

To avoid the warning, call client._backend._mtu_size = EXPECTED_MTU before reading client.mtu_size.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ChrisM0815
Comment options

You must be logged in to vote
4 replies
@dlech
Comment options

@EdwinFairchild
Comment options

@EdwinFairchild
Comment options

@dlech
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1165 on December 07, 2022 16:48.