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

darwin: implements device.Advertise. #52

Closed shirou closed 9 years ago

shirou commented 9 years ago

implements device.Advertise on darwin. I have confirmed it works using go_eddystone with little editing.

I read bleno implementation as a reference. It is just send a kCBAdvDataAppleMfgData Request.

I use AdvPacket.b directory, not a.Bytes(). Because at least my environment, a.Bytes() doesn't work because it is fixed length array.