Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase MTU for Linux GATT server #61

Open
pippolo84 opened this issue Feb 25, 2020 · 0 comments
Open

Increase MTU for Linux GATT server #61

pippolo84 opened this issue Feb 25, 2020 · 0 comments

Comments

@pippolo84
Copy link

I'm running the server example on an ARM embedded system equipped with Linux and to test it I sent some data through Renesas GATTBrowser on an Android device.
The example has been slightly modified to print the received data (below the interesting part of the code):

func f(req ble.Request, rsp ble.ResponseWriter) {
	fmt.Println(string(req.Data()))
}

func main() {
	// ...
	testSvc := ble.NewService(lib.TestSvcUUID)
	testSvc.AddCharacteristic(lib.NewCountChar())
	ch := lib.NewEchoChar()
	ch.HandleWrite(ble.WriteHandlerFunc(f))
	testSvc.AddCharacteristic(ch)
	// ...

I saw that the payload is always truncated to 20 bytes, no matter how many bytes I send from the Android device.
Is there a way to change the MTU or maybe enable some sort of chunking?

Thank you in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant