<?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>How to get mac addresses of all connected mesh devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93601/how-to-get-mac-addresses-of-all-connected-mesh-devices</link><description>Hello 
 I need the code where i can get mac addresses of all mesh connected devices. Suppose &amp;lt;- this is the link to find only one connected device. Is it possible this code only to get all mesh connected devices mac addresses? I need help here 
 Rega</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Nov 2022 16:34:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93601/how-to-get-mac-addresses-of-all-connected-mesh-devices" /><item><title>RE: How to get mac addresses of all connected mesh devices</title><link>https://devzone.nordicsemi.com/thread/398181?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 16:34:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a086102-e42a-4366-a817-40808ca3e868</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can get that in the addr field of the bt_mesh_msg_ctx in the handler function for the opcode. See for instance &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_bt_mesh_vendor_model_dev_overview.html#receiving-messages"&gt;Receiving messages&lt;/a&gt;, for how these handler functions are typically registered for a model.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get mac addresses of all connected mesh devices</title><link>https://devzone.nordicsemi.com/thread/397918?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 14:36:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4379b4a6-530e-4129-b9cd-e8680d8785b1</guid><dc:creator>SaSu</dc:creator><description>&lt;p&gt;Hello &lt;/p&gt;
&lt;p&gt;How exactly to do that any example please?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get mac addresses of all connected mesh devices</title><link>https://devzone.nordicsemi.com/thread/395345?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 14:23:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6405f91-6de9-4dc9-8d38-0cfa35cd004b</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If all you need is to differentiate between nodes on the mesh network, then you can use the originator address from the mesh packets themselves. For that you do not need to implement any custom mesh models.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get mac addresses of all connected mesh devices</title><link>https://devzone.nordicsemi.com/thread/394668?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 12:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c0790d2-a2a0-4135-9f2e-b26491f54b0e</guid><dc:creator>SaSu</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Thanks for your reply. I just need mac addresses to differentiate between different mesh servers, so that i can identify from which server i am getting data. You have any idea how to do this?&lt;/p&gt;
&lt;p&gt;and what do u mean by this -&amp;gt; ,,,,create a custom mesh model for sharing that data across the network,,,, could you tell me exactly how to do this?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get mac addresses of all connected mesh devices</title><link>https://devzone.nordicsemi.com/thread/394508?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 15:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c42e5d10-7dac-46d5-bc02-62a9125f2300</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Devices in a Bluetooth mesh network are not &amp;quot;connected&amp;quot;, and the Bluetooth mesh protocol uses its own set of &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_bt_mesh_concepts.html#addressing"&gt;addresses&lt;/a&gt; on the network, so the Bluetooth addresses don&amp;#39;t really matter that much.&lt;/p&gt;
&lt;p&gt;The BLE address is used for sending the BLE advertisement packet that contains the mesh packet, but when a mesh packet is relayed it is always using the BLE address of the relay. (In other words, the BLE address of the original sender is not kept when packets are relayed.) Therefore the receiver of a packet may only see the BLE address of the last node in the chain of relays.&lt;/p&gt;
&lt;p&gt;All nodes having successfully sent messages to the node, will be in the node&amp;#39;s Replay Protection List, which basically stores the sender address together with the highest sequence number received from that sender address thus far. In other words, the Replay Protection List contains addresses of the other nodes on the network. Maybe that is enough for your use case?&lt;/p&gt;
&lt;p&gt;If you really need the BLE addresses, then you must create a custom mesh model for sharing that data across the network.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>