GATT notification MTU

33 views
Skip to first unread message

Ricardo Quesada

unread,
Jan 9, 2024, 12:01:53 PMJan 9
to btstack-dev
TL;DR: Is it possible to change the MTU for att_server_notify() ?

I'm using the le_steamer_client / gatt_streamer_server as reference.

gatt_streamer_server handles the `ATT_EVENT_MTU_EXCHANGE_COMPLETE` event.
But I couldn't find how to trigger that event. Is there a way that from the server I can ask the client to increase the MTU ?

I'm only interested in increasing the MTU when sending the payload using `att_server_notify()`.

Thanks!

Matthias Ringwald

unread,
Jan 10, 2024, 5:50:50 AMJan 10
to btsta...@googlegroups.com
Hi Ricardo

TL;DR: not really, but you can try a GATT Client query :)

Core v5.4/ATT says that the GATT Client sends the ATT_EXCHANGE_MTU_REQ. =
You cannot do anything about that.
On the other hand, if a device is both GATT Client and Server, a device =
shall use the same MTU for both roles.
Also, there's some indication that both sides use a single MTU for both =
directions.

So, you can try to make a GATT Client query to the remote side, which =
will trigger an MTU Exchange by BTstack,
which then should also be valid for the GATT Server :)

Taking a step back: what device does send MTU Exchange in Client role?

Cheers
Matthias
> --
> You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/49a89d18-0883-4387-a04a-5d0135de0f3en%40googlegroups.com.

Ricardo Quesada

unread,
Jan 10, 2024, 9:52:44 AMJan 10
to btsta...@googlegroups.com
I'll play with GATT query. Many thanks!

You received this message because you are subscribed to a topic in the Google Groups "btstack-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/btstack-dev/OYDXsD47PxE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to btstack-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/2FD115D7-27CF-422F-B740-CEE3E1650D6F%40bluekitchen-gmbh.com.
Reply all
Reply to author
Forward
0 new messages