Author Topic: GATT Server - Characteristic Max Size  (Read 3188 times)

Offline briandunham

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
GATT Server - Characteristic Max Size
« on: May 05, 2022, 09:26:33 PM »
Hello Mike,

I have a GATT client that is subscribed to a characteristic. That characteristic is configured in the GATT server to have a size of 255 bytes. But when my GATT client receives a OnCharacteristicChanged notification, the length is only 20 bytes. Is there a way to change this default MTU to a bigger size?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: GATT Server - Characteristic Max Size
« Reply #1 on: May 05, 2022, 09:50:56 PM »
Unfortunately no, it is not possible on Windows platform. However if all is confugured correctly on a server side Windows always changes MTU size automaticaly to the server specified value. Also there can be dongle's limitation.

Offline briandunham

  • Newbie
  • *
  • Posts: 29
  • Karma: 0
Re: GATT Server - Characteristic Max Size
« Reply #2 on: May 10, 2022, 05:23:37 PM »
Thank you for the clarification. I was able to find a "set_max_mtu" function in other API that we're using for the GATT server. Which allowed my WCL application in Windows to automatically adjust to the new MTU value.

 

Sitemap 1 2 3 4 5 6 7