<?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 mesh heartbeat example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39270/ble-mesh-heartbeat-example</link><description>Hello, 
 The BLE mesh spec says the following: 
 Heartbeat is used to monitor nodes on a network and discover how far nodes are apart from each other. 
 Is there an example that demonstartes this feature? 
 Thx,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Apr 2019 09:52:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39270/ble-mesh-heartbeat-example" /><item><title>RE: Ble mesh heartbeat example</title><link>https://devzone.nordicsemi.com/thread/179696?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2019 09:52:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a270a94-fef4-4264-9120-c3235e1d875a</guid><dc:creator>P Sumanth</dc:creator><description>&lt;p&gt;Hey&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am working on heartbeat messages and found this post. In the above post i couldn&amp;#39;t understand few steps mentioned below&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;place the provisioner - HeartBeat &amp;amp; server - Heartbeat folders in the light_switch folder of the mesh sdk. Then, open the provisioner &amp;amp; client Segger Embedded Studio projects, go to Tools -&amp;gt; Options ... -&amp;gt; Building -&amp;gt; Global Macros &amp;amp; make sure the SDK_ROOT &amp;amp; MESH_SDK point to the correct paths.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please explain elaborately the procedure of above steps and also about the sending RSSI to mesh_event_cb() at the end of post.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;sumanth&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble mesh heartbeat example</title><link>https://devzone.nordicsemi.com/thread/159077?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 15:07:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94f8fcb5-dfbc-4e4c-9589-2cb7307bdbe0</guid><dc:creator>michel_93</dc:creator><description>&lt;p&gt;I looked at the example and it very helpful. But I have a question about the RSSI. How exactly can I forward the RSSI value to the mesh_event_cb()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble mesh heartbeat example</title><link>https://devzone.nordicsemi.com/thread/152254?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 15:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2838050b-8f9c-4839-a169-c07e9083cce9</guid><dc:creator>rborb</dc:creator><description>&lt;p&gt;Excellent starting point!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble mesh heartbeat example</title><link>https://devzone.nordicsemi.com/thread/152171?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 09:00:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b05428b5-326f-4c2e-a4a9-6bc3c228713e</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;No, there is unfortunately no &amp;quot;real&amp;quot; mesh sdk example to demonstrate this feature. &lt;strong&gt;However&lt;/strong&gt;, one of the application engineers in the support team has created an example which should work. Just download the mesh sdk v2.1.1 &amp;amp; place the provisioner - HeartBeat &amp;amp; server - Heartbeat folders in the light_switch folder of the mesh sdk. Then, open the provisioner &amp;amp; client Segger Embedded Studio projects, go to Tools -&amp;gt; Options ... -&amp;gt; Building -&amp;gt; Global Macros &amp;amp; make sure the SDK_ROOT &amp;amp; MESH_SDK point to the correct paths. They might be similar to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;SDK_ROOT=C:/NordicSemi/SDKs/nRF5_SDK_15.0.0_a53641a
MESH_ROOT=C:/NordicSemi/SDKs/nrf5_SDK_for_Mesh_v2.1.1_src&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Make sure to keep the path quite short like I have done, otherwise you might get some path errors that are common in Windows (if you are using Windows).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-400bdf862cac4ab2b6b3b9a7e46d7391/light_5F00_switch_5F00_heartbeat.rar"&gt;devzone.nordicsemi.com/.../light_5F00_switch_5F00_heartbeat.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is a description from Hung Bui who created the example:&lt;/p&gt;
&lt;p&gt;&amp;quot;Attached is&amp;nbsp;a modified version of the lightswitch example to show how to configure heart beat. Please have a look at the node_setup.c file in the provisioner. In the example we will configure the light switch client to send heart beat to address 0xFFFF (all nodes) and the server 1, 2 will subscribe to the client address (0x100) and destination (0xFFFF). The server will print it out as RTT log in&amp;nbsp;mesh_event_cb() in main.c&lt;/p&gt;
&lt;p&gt;If you want to have RSSI (of the last forwarded packet) you would need to&amp;nbsp;nrf_mesh_rx_metadata_t in heartbeat_opcode_handle() to send the RSSI value to&amp;nbsp;mesh_event_cb as&amp;nbsp;NRF_MESH_EVT_HB_MESSAGE_RECEIVED event.&amp;quot;&lt;/p&gt;
&lt;p&gt;Hope that helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>