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

Error 22 (0x16): GATT CONN TERMINATE LOCAL HOST

Hello Nordic lovers,

Happy Merry Christmas.

In ble_uart code, I'm interfacing the FreeRTOS & twi_sensor code

The program executed without any error.

And it starts advertising. When I try to connect the nrf connect app shows the following lines 

Connected to C4:58:F5:10:ED:4B

Connection parameters updated (interval: 7.5 ms, latency: 0, timeout: 5000 ms)

Error 22 (0x16): GATT CONN TERMINATE LOCALHOST

Disconnected

If anyone knows the solution to my problem, Let me know.

Thanks in advance

  • Hi, 

    Since the error message states that the local host terminated, it means that the phone terminated the connection for some reason. Apparently, something upset the phone, but I cannot see what and why. Do you have a sniffer trace and log from the nRF side? Perhaps that can shed some light on things. You could also try different connection parameters and similar, as suggested in this thread.

    Notice that we are entering the Christmas and New Year holidays and will have reduced staff, please expect delayed responses until after January 4th. Sorry for the inconvenience.

    -Amanda H.

Related