This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

connection handle problem

hello, I am having some doubts regarding the connection handle. Will it be the same for both devices participating in a connection? I was trying to connect two devices, one as a peripheral and other as a central using S130 soft device. But in the central side it is showing the connection handle as zero!! And in the peripheral side as 3. I think connection handle zero is an invalid handle. But I could successfully do service discovery and characteristics writ using this handle. i am wondering how it happened!! But when I tried to disconnect using sd_ble_gap_disconnect(), it is showing error showing "Invalid param". What is happening here?? I could not figure out where I did mistake?? Can anybody please help me to solve this..

Thanks in advance

Parents
  • The connection handle is only used internally in the stack, so the connection handle in the peripheral has nothing to do with the connection handle in the central. They can however be equal, but that is just a coincidence.

    The central will have connection handles from 0 to 7, the newer releases of the peripheral stack will have connection handle 0, while the older can have something else, like 3.

    Connection handle 0 is not an invalid handle.

  • What did you do wrong with your paramters I'm having the same issue. Hope you can help.

Reply Children
No Data
Related