Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 5 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:
1 Answer
9 years, 5 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.