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

Where is the connected state changed in the UART nrf toolbox?

Hello, in the NRF Toolbox UART application for iPhone if you navigate the the UART button screen and connect to the nrf52 eveything is fine. You can exit the app (whitch goes to the background) and come back while the connection stays up. On the UART button scree, If you hit the back arrow on the top left nav bar and then return to the UART button screen the UART function thinks it is disconnected from the nrf52 but it is not. The phone still sees the nrf52 as connected and the nrf52 itself is still connected, a GAP disconnect even did not hapen. Where is the connection state changed by the back action in the code?

Thank you

  • Hi Claude,

    It's a bug with the code. We suspecting it has something wrong with the memory that when the GUI is destroyed the peripheral is also go away with it. Meaning the UART app has no clue it was connected to the peripheral, and when you try to click scan, it won't be the list because it's already connected and doesn't advertise.

    The "Back" button is handled by the OS, it makes it a little bit more difficult to figure out what is wrong. You can try to create your own app based on our UART code without the Back button.

    We will try to fix the issue and release an update as soon as possible.

  • ye, I will continue searching to find where the GUI is destroyed to save the connection state and re-instate it when you come back. If you leave the app (the app going to the background) and come back the connection is preserved so it should not be too difficult.

Related