<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Aborting connection procedure after calling bt_conn_le_create()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123720/aborting-connection-procedure-after-calling-bt_conn_le_create</link><description>We&amp;#39;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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 17 Aug 2025 11:09:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123720/aborting-connection-procedure-after-calling-bt_conn_le_create" /><item><title>RE: Aborting connection procedure after calling bt_conn_le_create()</title><link>https://devzone.nordicsemi.com/thread/545839?ContentTypeID=1</link><pubDate>Sun, 17 Aug 2025 11:09:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09f5691-e332-45dd-8766-0de09c0843d2</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi Kurt,&lt;/p&gt;
&lt;p&gt;You are right, once you have tried to establish a connection you need to use&amp;nbsp;bt_conn_disconnect(), I can find from&amp;nbsp;\v3.1.0\zephyr\include\zephyr\bluetooth\conn.h in the description for &lt;span&gt;bt_conn_disconnect()&lt;/span&gt;:&lt;/p&gt;
&lt;p&gt;&amp;quot;Disconnect an active connection with the specified reason code or cancel&amp;nbsp;pending outgoing connection.&amp;quot;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Aborting connection procedure after calling bt_conn_le_create()</title><link>https://devzone.nordicsemi.com/thread/545780?ContentTypeID=1</link><pubDate>Fri, 15 Aug 2025 12:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ae986d0-deb9-49d6-8998-354af5f4ab8a</guid><dc:creator>kpreiss</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;br /&gt;&lt;br /&gt;Thanks for the reply.&amp;nbsp; I could not find the function bt_conn_le_create_cancel() in any of the header files for SDK v2.6.0.&lt;br /&gt;&lt;br /&gt;Kurt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Aborting connection procedure after calling bt_conn_le_create()</title><link>https://devzone.nordicsemi.com/thread/545768?ContentTypeID=1</link><pubDate>Fri, 15 Aug 2025 10:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6cc94aa-f4ad-4798-adb2-ee10eab851d9</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If I remember correctly you can set a timeout when you call&amp;nbsp;&lt;span&gt;bt_conn_le_create(), such that if it doesn&amp;#39;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&amp;nbsp;bt_conn_le_create_cancel() that can also be used here.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>