<?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>BLE event handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115911/ble-event-handler</link><description>I am currently using two nRF52840s to create a transmitter, one that acquires data and transmits it as advertisement data, and a receiver that receives data from the advertisement data. The transmitter&amp;#39;s configuration parameters are set via an NUS connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Oct 2024 08:39:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115911/ble-event-handler" /><item><title>RE: BLE event handler</title><link>https://devzone.nordicsemi.com/thread/508299?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 08:39:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a158176f-526b-47fd-8af8-02af66479923</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You are using the nRF5 SDK (v17.1.0)?&lt;/p&gt;
&lt;p&gt;So your peripheral is advertising, you can connect to it, and you can continue to see advertisements from the peripheral after disconnecting (e.g. if you scan using your phone)? However, on the central, you can&amp;#39;t find the advertisements from the peripheral after you disconnect. Is that the case?&lt;/p&gt;
&lt;p&gt;In your ble_evt_handler(), it is possible to receive events on every advertisement scanned. To do so, you can add to the switch case in ble_evt_handler() :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        case BLE_GAP_EVT_ADV_REPORT:
            // Do something
            break;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So depending on what you want to filter on, you can implement this directly here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what you initially were looking for in the ble_evt_handler()? Did you have some filtering, and e.g. the&amp;nbsp;NRF_BLE_SCAN_EVT_FILTER_MATCH event in your ble_evt_handler? If so, what filtering were you using?&lt;/p&gt;
&lt;p&gt;And after the disconnection, did you change anything in the advertisement of the peripheral?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>