<?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>the two connect evt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86356/the-two-connect-evt</link><description>Hi Nordic, 
 I am developling a porject with nRF5 SDK 17.1.0, with nRF52832. 
 the 52832 serve as a central role. 
 1、I am wondering what is the difference between BLE_GAP_EVT_CONNECTED and NRF_BLE_SCAN_EVT_CONNECTED. 
 2、when a central want to connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Mar 2022 13:23:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86356/the-two-connect-evt" /><item><title>RE: the two connect evt</title><link>https://devzone.nordicsemi.com/thread/360559?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2022 13:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1591eb7c-b60e-4a09-b1cc-3318dec39166</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]1、I am wondering what is the difference between&amp;nbsp;&amp;nbsp;BLE_GAP_EVT_CONNECTED and&amp;nbsp;&amp;nbsp;NRF_BLE_SCAN_EVT_CONNECTED.[/quote]
&lt;p&gt;You always get the&amp;nbsp;BLE_GAP_EVT_CONNECTED event from the SoftDevice when a connection is established. If you are using the scan module, then you will &lt;em&gt;also&lt;/em&gt;&amp;nbsp;get the&amp;nbsp;NRF_BLE_SCAN_EVT_CONNECTED event in this case (this is sent by the scan module when it sees the&amp;nbsp;BLE_GAP_EVT_CONNECTED event). The latter is a scan module event, and the former is a normal Bluetooth event. You can search for these events in the SDK examples to see how they can be used.&lt;/p&gt;
[quote user=""]2、when&amp;nbsp; a central want to connect to a specific slave, it will transmit a SCAN_REQ, and then what will happen, a&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_CONNECTED&amp;nbsp; event or&amp;nbsp;NRF_BLE_SCAN_EVT_CONNECTED?&lt;/span&gt;[/quote]
&lt;p&gt;Neither. A scan request is not related to establishing a connection. That is just a way to request a scan response packet, which is sort of an extra advertising packet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>