Hi,
I have a question.
-
SDK:8.1.0
-
softdevice:8.0.0
I create two APP_TIMER, as follow:
I will start the adc_sample_timer, as follow:
After the device advtising, I use my phone connect with this device, at the same time, I start the disconnect_timer,as follow:
When the disconnect timer is timeout, it will go to function disconnect_level_meas_timeout_handler()
-
(1)the device will restart when it use err_code = sd_ble_gap_disconnect(m_conn_handle,BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION); err_code = 0x00000000; NRF_POWER->RESETREAS = 0x00000000 or Reset from AIRCR.SYSRESETREQ detected;
-
(2) the device will not restart when it use not err_code = sd_ble_gap_disconnect(m_conn_handle,BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
-
(3)the device will not restart when it use err_code = sd_ble_gap_disconnect(m_conn_handle,BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION) and not use adc_timers_start() at main();
who can tell me why? Thanks.