I am looking at this example: github.com/.../main.c
In ble_evt_dispatch (line 315), this function forwards an BLE event to all of the modules. By looking at ble_evt_t, none of the fields does not signify which event is for which. So how does the individual modules knows that for example, BLE_GAP_EVT_CONNECTED is suppose to be for that module?
If there is an way to identify the events based on the UUID, then we can properly route the events to the correct BLE event handler.
Or am I just missing something here? Thank you.