<?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>sd_ble_gap_connect times out, but BLE_GAP_EVT_TIMEOUT never fires</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99516/sd_ble_gap_connect-times-out-but-ble_gap_evt_timeout-never-fires</link><description>Im on an nRF52832, on SDK16.0. I&amp;#39;ve recently discovered that not setting a timeout for sd_ble_gap_connect means the connection attempt cannot be gracefully cancelled. So as the next best available solution, I&amp;#39;ve been testing using the timeout. I noticed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 May 2023 21:43:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99516/sd_ble_gap_connect-times-out-but-ble_gap_evt_timeout-never-fires" /><item><title>RE: sd_ble_gap_connect times out, but BLE_GAP_EVT_TIMEOUT never fires</title><link>https://devzone.nordicsemi.com/thread/424382?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 21:43:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a04440-435a-41b7-b802-935a10117268</guid><dc:creator>tmuir_pct</dc:creator><description>&lt;p&gt;It turns out that I was filtering events by connection state role before checking for the actual events.&amp;nbsp; Since there is no connection at this time, I&amp;#39;m neither a peripheral or a central during a connection attempt.&amp;nbsp; Once I removed this unnecessary filter, I receive the BLE_GAP_EVT_TIMEOUT event for both scanning timeout and connection timeout.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_connect times out, but BLE_GAP_EVT_TIMEOUT never fires</title><link>https://devzone.nordicsemi.com/thread/424379?ContentTypeID=1</link><pubDate>Mon, 08 May 2023 21:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f81014d-ca18-4f64-a8e7-dddf3ca787f0</guid><dc:creator>tmuir_pct</dc:creator><description>&lt;p&gt;Correction:&amp;nbsp; I thought I was getting into BLE_GAP_EVT_TIMEOUT&amp;nbsp; when the source was BLE_GAP_TIMEOUT_SRC_SCAN, but I had two different codepaths creating the same log string.&amp;nbsp; BLE_GAP_EVT_TIMEOUT&amp;nbsp; does not get called in either case.&amp;nbsp; I recognize that scanning has ended in NRF_BLE_SCAN_EVT_SCAN_TIMEOUT, handled in the scan event handler, not the ble gap event handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>