5 years, 2 months ago.

[Error: Identifier "MBED_ERROR_CODE_BLE_ILLEGAL_STATE" is undefined] reported at mbedOS 5.11.3

Hello, I imported this project on my compiler, https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-ble-BatteryLevel/ After update "mbed-os" to this version a8d1d26fa7, tag:mbed-os-5.11.3, then I tried to compile "mbed-os-example-ble-BatteryLevel" project, there was an error: Error: Identifier "MBED_ERROR_CODE_BLE_ILLEGAL_STATE" is undefined in "extras/mbed-os.lib/features/FEATURE_BLE/source/generic/GenericGap.cpp", Line: 68, Col: 6

How can I get rid of this error?

Thanks!

Thanks for reporting, we will check.

posted by Martin Kojtal 02 Feb 2019

1 Answer

5 years, 2 months ago.

I have the same error, I think its an OS update bug because this Friday my project worked fine.

I hope someone give us a solution.

Thanks.

Hi, we are investigating. If you use mbed-cli (offline building), it should work.

posted by Martin Kojtal 04 Feb 2019