6 years, 10 months ago.

mbed-os-example-ble-Button not working

Hello,

I'm using the plataform Ublox EVK Nina B1 and I add the code to compile and get the .hex, but my problem is when I try to conect with my android the bluetooth signal disappear. If I press the reset button the signal can back for a short time and disappear again.

Can you help me?

Thanks for your attetion.

Best Regards

Rhenan

could you please tell me the steps , what you did exactly?

posted by vani N 24 Dec 2018

2 Answers

6 years ago.

While compile the application getting "[Fatal Error] main.cpp@23,21: ble/BLE.h: No such file or directory [ERROR] .\main.cpp:23:21: fatal error: ble/BLE.h: No such file or directory

  1. include "ble/BLE.h" ^ compilation terminated." error.

could you please help anyone?

Thanks

Hi Vani,

What board do you use? Are you using mbed-os-example-ble-Button?

posted by Desmond Chen 20 Dec 2018

Hi Desmond Chen,

I am using CY8CKIT_062_BLE board. Yes i am using mbed-os-example-ble-Button application.

posted by vani N 24 Dec 2018
5 years, 11 months ago.

Hi Vani,

This because the "BLE" feature doesn't add to this target correctly, please add the follow configuration to your mbed_app.json.

Assume your are using target FUTURE_SEQUANA

mbed_app.json

{
    "config": {
        "ble_button_pin_name": {
            "help": "The pin name used as button in this application",
            "macro_name": "BLE_BUTTON_PIN_NAME",
            "required": true
        }
    },
    "target_overrides": {
        "FUTURE_SEQUANA": {
            "target.features_add": ["BLE"],
            "ble_button_pin_name": "USER_BUTTON"
        }
    }
}

Thanks,

- Desmond, team Mbed