2025-03-31 6:44 AM
Hi,
I'm relatively new with ST microcontrollers and I'm struggling a bit to find an answer to a question I have.
I have some code that reads data from an external source. I need to read some data on startup, as it dictates the some stages of the boot process. The code that parses that received data also sends notifications over BLE later in the program execution. My problem is that the first calls to my parser triggers some notifications before the BLE interface is properly initialise and the micro hard-faults.
I can't bring the call to `app_BLE_init()` any earlier than it is. I was wondering if there's a function in the API to check the status of the BLE stack, and avoid acting on the BLE link before it has been properly initialised. I tried with a dirty boolean flag, but I'm sure there must be a better way, right?