paypal / gatt

Gatt is a Go package for building Bluetooth Low Energy peripherals
BSD 3-Clause "New" or "Revised" License
1.14k stars 285 forks source link

Negotiate for larger MTU #82

Open reallyroy opened 7 years ago

reallyroy commented 7 years ago

Hi,

I'm in the process of porting some BLE peripheral code based on Bleno to GO. I am using this gatt package for the same. But I have hit an issue that I'm unsure how to solve. In the bleno based peripheral, I was able to write large data to a characteristic. When I say large I mean a base64 string of around 350 characters. However, when I run the same test on this package, the write doesn't happen if the string is greater than the MTU of the Central. Perhaps, the bleno code negotiates for a larger MTU? Or chunks internally?

How do I get the peripheral to negotiate for a larger MTU size?

Regards, Roy