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

mac fix, updating examples #23

Closed acmacalister closed 9 years ago

acmacalister commented 9 years ago

The project was not building on mac, as header file being included was named incorrectly. Also a few fixes to one of the example programs as it was crashing if the flag was not provided.

acmacalister commented 9 years ago

ah, I didn't test on Linux, only OS X. I pulled out the string uppercase as on mac the ID is something like this:

d02316684d7b4bdb829a55496f12fc8d

which uppercasing causes it to fail. Maybe it would make sense to uppercase both the p.ID() and the id from the flags, so it works on both?

roylee17 commented 9 years ago

That would be nice, could you include it in the PR?

acmacalister commented 9 years ago

@roylee17 updated.

roylee17 commented 9 years ago

Cool, thanks!