<?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>central connection error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83288/central-connection-error</link><description>Hi Everyone. 
 IDE : Vs Code 
 SDK : nrfConnect SDK 
 
 I have tried to connect peripheral device based on address. User gives input , address of ble device and based on that, I would start ble connection request. 
 I was successfull to connect, If I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jan 2022 13:35:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83288/central-connection-error" /><item><title>RE: central connection error</title><link>https://devzone.nordicsemi.com/thread/346216?ContentTypeID=1</link><pubDate>Wed, 05 Jan 2022 13:35:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:206cfd6e-6697-4b5f-9666-0156dbb89dbd</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;That should do it. The BLE stack should free any buffer used for the connection automatically before the application receives the disconnection event. So you should be free to just delete the connection data.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central connection error</title><link>https://devzone.nordicsemi.com/thread/345855?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 10:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56e006e7-d5ec-443a-a0f6-f73bcb87ff24</guid><dc:creator>viswa</dc:creator><description>&lt;p&gt;I got the problem fixed.&lt;/p&gt;
&lt;p&gt;FYI: I am working on BLE CENTRAL role.&lt;/p&gt;
&lt;p&gt;1.I would get connection callback with err : 2, which means connection timeout occured .&lt;/p&gt;
&lt;p&gt;2.connection create error : -22, which means there&amp;#39;s already one existing connection with same address.&lt;/p&gt;
&lt;p&gt;FIX:&lt;/p&gt;
&lt;p&gt;Once you get timeout error&lt;/p&gt;
&lt;p&gt;-&amp;gt;Clear struct bt_conn * Variable, which you have passed to bt_conn_le_create();&lt;/p&gt;
&lt;p&gt;This will allow to retry with same address again, otherwise you get error -22.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Correct me If I&amp;#39;m wrong, Nordic Team.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Visweswara Sarma&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>