8 years, 11 months ago.

Latest BLE API Broken

Hey all,

If I try to export the BLE Heart Rate program to Keil and compile it, it fails to compile with about 30 errors. The errors that it throws are "expected an identifier" for the UUID and Appearance enums in blecommon.h.

Upon further investigation, I can see the problem. The names for the enums (e.g. BLE_UUID_UNKNOWN) are first defined in ble_types.h as a number and then the same names are used in the enums in blecommon.h. This causes the compiler to try and create an enum that looks like:

enum { 0x0000 = 0x0000 }

Which won't work. I'm not sure why it compiles in the mbed compiler though. Does anyone have a fix for this?

Question relating to:

Bluetooth Low Energy (a.k.a Bluetooth LE, BTLE, Bluetooth Smart)

1 Answer

8 years, 11 months ago.

Thanks for bringing this up. We'll sort this early next week. If you have a fix, please submit a pull request in github. If you can please report this as an issue in github, you'll ensure it gets quick handling, else I'll have to remember to turn this into a backlog work item. Thanks.

Thanks Rohit. I just submitted the issue and pull request to fix it.

posted by Jay Cady 26 Jun 2015