7 years, 6 months ago.

BLE UART Device to use w/ mbed

so the default BLE API for the MBED platform blocks the cpu while waiting for BLE events to come in, now if the ble is a secondary function that shouldn't block the cpu from doing other tasks in my project. Could I use another MBED enabled mcu to handle the BLE functions and connect the mcu's over UART?

I'm trying to use ble for OAA for a LORA module, and other boards, so the question is there a board that exists already to interface, or should i find a general ble uart solution and connect it to the board?

1 Answer

7 years, 6 months ago.

If you're using mbed OS 5 with the BLE API it will not block, but use an async event queue. See f.e. here. Alternatively you can run the BLE stack in another RTOS thread and your main code in the main thread.