Skip to content

notification lenght #87

Discussion options

You must be logged in to vote

Hi Luca,
The notification length is determined by the connection's MTU. The default MTU size is 23 bytes, where notifications require 3 bytes overhead thus 20 bytes are notified. The MTU size is typically negotiated at the start of a connection and set to a larger size if desired.

My guess is nRF Connect does the MTU negotiation automatically whereas in blatann it's a manual function call. Typically it looks something like this:

device = BleDevice(params)

 # This sets the maximum MTU size supported by the dongle. Without this call the max is set to the default 23. BLE spec is 512 bytes. 
# if configure() is called without any parameters, the max is set to 247 which is optimized for DLE/t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mantegna10
Comment options

Answer selected by mantegna10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants