Skip to content
Discussion options

You must be logged in to vote

@dst10 -- The 20 bytes comes from two things, the GATT channel's MTU and the characteristic storage on the server.

The central can initiate mtu exchange as @bixb922 has described. A peripheral can set the default mtu using

import aioble
aioble.config(mtu=N)

This method wraps the underlying config method on the bluetooth.BLE object -- see https://docs.micropython.org/en/latest/library/bluetooth.html#bluetooth.BLE.config for more details about this.

You also need to consider the storage for the characteristics, which defaults to 20 bytes. There are two ways to resize this, the easiest is just to write a larger value to the characteristic when your server starts, which will grow the interna…

Replies: 2 comments 1 reply

Comment options

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

jimmo Jul 6, 2023
Maintainer

Answer selected by dst10
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants