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

LEAdvertisingReportEP Unmarshal slice bounds out of range with d.Scan( , true) #89

Open
m-ivanov opened this issue Apr 25, 2017 · 2 comments

Comments

@m-ivanov
Copy link

d.Scan([]gatt.UUID{}, true)

panic: runtime error: slice bounds out of range

goroutine 24 [running]:
github.com/paypal/gatt/linux/evt.(*LEAdvertisingReportEP).Unmarshal(0x1041f790, 0x1046e07e, 0x14, 0x14, 0x0, 0x0)
	/root/go/src/github.com/paypal/gatt/linux/evt/evt.go:327 +0x5b0
github.com/paypal/gatt/linux.(*HCI).handleAdvertisement(0x10442300, 0x1046e053, 0x3f, 0x3f)
	/root/go/src/github.com/paypal/gatt/linux/hci.go:247 +0x54
created by github.com/paypal/gatt/linux.(*HCI).handleLEMeta
	/root/go/src/github.com/paypal/gatt/linux/hci.go:359 +0x11c
@aroxarox
Copy link

aroxarox commented Jun 21, 2018

Got same problem with an NTC Chip device although it works with RPI : it seems the unmarshal function do not aggre with the order used to multiplex report. I have it working by replacing all loops on NumReports by a single loop. But I dont know if the problem come from the code, some change in protocol or firmware on BT Chip ?

The RPI always send single AdvertisingReport so I can say who is right.

@Preston-PLB
Copy link

Having a similar problem with a Bluetooth OBD scanner but not a smartwatch. Any advice on how to fix?

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

3 participants