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

Automated testing using NRF connect: NRF Connect auto connects even when "Use autoConnect" is unchecked

I am performing automated testing on my device using an xml file that I have written. My xml contains a disconnect command. I observed that NRF connect reconnects to my device after disconnection and keeps on doing this even though the "Use autoConnect" checkbox is unchecked.

I observed this phenomenon only when "Show incoming connection" option is enabled. I guess NRF connect should not reconnect when "Use autoConnect" is unchecked. Is this a bug in NRF Connect?

  • Hi, I'd say it's more an Android bug, but perhaps I could do a workaround. When you have a gatt server configured and the nrf connect is running there may be some events coming that the device got connected to the server after you disconnected from it. Then nRF Connect would reconnect to it with this option checked. If you don't need gatt server in your automated tests (and in fact it is not supported yet), you should close the nRF Connect with Back button before starting a test. Then the service is not running and won't interrupt. Support for gatt server will be added to AT in some time, then the config could be provided in the XML for each test and some additional operations will be available, like in Macros.

Related