Aborting connection procedure after calling bt_conn_le_create()

We're running SDK v2.6.0 on a nrf5340 processor and initiating a connection to a specific heartrate monitor using the bt_conn_le_create() function.  What function do we call if we want to abort the scanning/connection process?  Is it sufficient to call bt_le_scan_stop()?

Thank you.

Parents
  • Hi,

    If I remember correctly you can set a timeout when you call bt_conn_le_create(), such that if it doesn't successfully connect within a few hundred ms, then you can go back to scanning or idle state. That is the normal way of doing it. However I do believe there is an bt_conn_le_create_cancel() that can also be used here.

    Kenneth

Reply
  • Hi,

    If I remember correctly you can set a timeout when you call bt_conn_le_create(), such that if it doesn't successfully connect within a few hundred ms, then you can go back to scanning or idle state. That is the normal way of doing it. However I do believe there is an bt_conn_le_create_cancel() that can also be used here.

    Kenneth

Children
Related