Hello Team,
I am working on the ble_app_hrs_rscs_relay example, in which NRF act both as a central and peripheral. My peripheral is a heart sensor (Polar H10) and my central is Mobile App. I have successfully disconnected the peripheral (Polar H10) by short pressing a button by calling sd_ble_gap_disconnect(m_conn_handle_hrs_c, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION); function, but I am unable to disconnect the central (Mobile App) by calling sd_ble_gap_disconnect(m_advertising.adv_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION); Is this the correct connection handler I have passed here? I am confused about the connection handler(which is to be passed in the disconnect function) for the central (mobile app). I am stuck with this issue for the last 7 days. Any help regarding this issue will be highly appreciated. I am using SDK 17.02 and soft devices S140.
Actually, I want to disconnect both peripheral and central from the NRF52 device by short pressing of a button, I come back to functional by pressing the same button again.