Hi,
I do test my project one central connect to 4 peripheral(HR and CSC).
and I put the memset(&m_ble_db_discovery,0,sizeof(m_ble_db_discovery)); err_code = ble_db_discovery_start(&m_ble_db_discovery[p_gap_evt->conn_handle], p_gap_evt->conn_handle); APP_ERROR_CHECK(err_code);
so central connect to peripheral works fine but during my test I will switch off central device power off.
I found my peripheral keep connect because the led on and no advertising.
The peripheral is use the pca10028 evb.
So I step by step running my central side I found after ble_db_discovery_start
function is called but no keep call ble_cscs_c_handles_assign
and after other functions
the peripheral device will turn on the LED1 means BLE_GAP_EVT_CONNECTED is show and keep wait.
My question is: how to detect my peripheral device even though the BLE_GAP_EVT_CONNECTED is show but during few seconds still no enable notify service then disconnect and advertising for other central device.
Thanks