<?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>Reading Bluetooth beacon data with Mesh SDK?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27709/reading-bluetooth-beacon-data-with-mesh-sdk</link><description>I want to read data, advertised by a bluetooth beacon.
I have made this work before with SDK v14 using NRF_SDH_BLE_OBSERVER() to register a handler function to handle BLE_GAP_EVT_ADV_REPORT messages. 
 But now I am working with Mesh SDK v0.10. and i</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Dec 2017 12:36:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27709/reading-bluetooth-beacon-data-with-mesh-sdk" /><item><title>RE: Reading Bluetooth beacon data with Mesh SDK?</title><link>https://devzone.nordicsemi.com/thread/109376?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 12:36:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b07c6eb6-b1c4-4e4b-83a6-0c8cb2c656a9</guid><dc:creator>S&amp;#248;renHN</dc:creator><description>&lt;p&gt;I figured it out.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;NRF_SDH_BLE_OBSERVER()&lt;/code&gt; not available in Mesh SDK or SKD v12.1.
So that is not an option.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;softdevice_ble_evt_handler_set()&lt;/code&gt; is available in SDK v12.1 but the API is not implemented in the Mesh SDK and I would like to only use the Mesh SDK as much as possible.&lt;/p&gt;
&lt;p&gt;Luckily the Mesh SDK implements &lt;code&gt;nrf_mesh_rx_cb_set()&lt;/code&gt; in the mesh stack.
By registering a bluetooth event handler using this function it is possible to detect any bluetooth advertising from nearby devices and then sort out the ones not needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>