paypal / gatt

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

OSX implementation will break with go 1.6 #64

Open raff opened 8 years ago

raff commented 8 years ago

Go 1.6 has more restrictions in the use of cgo and Go pointers and the current implementation breaks in various places with various errors "panic: runtime error: cgo argument has Go pointer to Go pointer".

I have "fixed" my implementation with some casts (need to verify that it really works). See https://github.com/raff/goble/commit/811260b1d735999cdc026ab89dc513ad6658e29a

emptyway commented 8 years ago

I can confirm this issue.

zubairhamed commented 8 years ago

+1

anubhav-sri commented 8 years ago

+1

sleeper commented 8 years ago

+1

ghost commented 8 years ago

It seems like there might be an error when trying to connect my OnePlus X to my Mac Mini with server.go (example). The phone never connects properly returning the "incorrect passkey" error regardless of the password typed.

tolleiv commented 8 years ago

The changes made by @roylee17 solve this issue for me!