Hello everybody,
I am new to Bluetooth and so when looking through the code to try and understand how to connect two microcontrollers from two different manufacturers I ran into the following function which is located in the ble_manager.c file of most Atmel SAMB11 Xplained Pro demos:
ble_mgr_events_callback_handler(ble_mgr_event_cb_t event_cb_type,
ble_mgr_event_t event_type,
const ble_event_callback_t *ble_event_handler)
So this ble_event_handler is passed into this function, which contains an array of function pointers such as ble_scan_report_handler, ble_connected_state_handler, etc. What I am having trouble seeing is how are all these functions being called when scanning and connecting to another device, is it all being handled in the background with the ble_event_task()?