Hello,
I use S132 on nRF52 and do multiple roles.
When event BLE_GAP_EVT_CONNECTED is fired, role is invalid (0). How to know that it was a device or central event ?
Code:
uint16_t conn_handle = p_ble_evt->evt.gap_evt.conn_handle;
uint16_t role = ble_conn_state_role(conn_handle);
Execution:
conn_handle = 0
role = 0