<?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>How to determine if central fails to connect to peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11767/how-to-determine-if-central-fails-to-connect-to-peripheral</link><description>I am using a central S130 softdevice in an nRF51822. I connect to a peripheral using sd_ble_gap_connect(&amp;amp;m_peripheral_address, &amp;amp;m_scan_param, &amp;amp;m_connection_param) . If it is able to establish a connection to the peripheral, everything proceeds as expected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 07 Feb 2016 00:00:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11767/how-to-determine-if-central-fails-to-connect-to-peripheral" /><item><title>RE: How to determine if central fails to connect to peripheral</title><link>https://devzone.nordicsemi.com/thread/44496?ContentTypeID=1</link><pubDate>Sun, 07 Feb 2016 00:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17c792dd-f11d-4a4f-8454-69e28502cd55</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Yes set the timeout parameter in the &lt;code&gt;p_scan_params&lt;/code&gt; of the &lt;code&gt;sd_ble_gap_connect()&lt;/code&gt; call to something other than zero, which means try forever. &lt;code&gt;p_conn_params&lt;/code&gt; are the parameters to use for the connection when connected, it&amp;#39;s the scan parameters which determine how long to search for the peripheral before connecting and when to time that process out and return error&lt;/p&gt;
&lt;p&gt;This is in the Message Sequence Chart for &lt;code&gt;GAP Central Connection Establishment And Cancellation&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>