This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Device manager timeout handler and related event

Hi,

I'm using device manager for bonding starting from a sample application in the SDK.

I see that the DM_EVT_CONNECTION is raised before the BLE_GAP_EVT_CONNECTED but the dm event handler needs to start a timer for securing the link because it needs a valid m_conn_handle that is set only in the BLE_GAP_EVT_CONNECTED. Why these two events are raised in reverse order ? Can you explain me it better ?

I have this question because we are developing a board that haven't the externel oscillator for RTC1, so I can't use app timer and I need to remove the timer used to execute dm timeout handler. Is the only solution to use a TIMER1/2 or is there another solution to do that ?

Thanks, Paolo.

Parents Reply Children
No Data
Related