Hello,
sd_ble_gap_adv_stop()
returns NRF_ERROR_INVALID_STATE
sd_ble_gap_disconnect(m_connx_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
Disconnects the device, but it reconnects in the following seconds.
Any idea?
Hello,
sd_ble_gap_adv_stop()
returns NRF_ERROR_INVALID_STATE
sd_ble_gap_disconnect(m_connx_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
Disconnects the device, but it reconnects in the following seconds.
Any idea?
I need that the device automatically reconnects on timeout disconnect, and it shall not reconnect on user intiated disconnection.
so program the device not to connect. You never answered the question "what is the device"
I answered twice : the device is nrf52. How to programm the device for not to reconnect?
No - we know the peripheral device is nRF52, what's the central which is connecting to it? The central initiates the connection when it sees an advertising peripheral it wants to connect to. If the central is another nRF52 then change the code on that not to attempt reconnection on disconnection. If the central isn't another nRF52, what is it? If you want nobody to connect to you after you (as peripheral) force-disconnect them, don't re-start advertising. if you only want a specific list of devices to connect to you, use a whitelist.
Ok, the devices are a PC, an iOS phone and an Android phone. Is there a way to turn BLE OFF totally, so that the radio doesn't wake up. Ole Bauck wrote that
NRF_RADIO->TASK_DISABLE = 1
does nothing because of the use of softdevice