<?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 find source/destination address within mesh model callback function?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58841/how-to-find-source-destination-address-within-mesh-model-callback-function</link><description>Hi teams, 
 As the title describes, how can I find source/destination address inside mesh model callback functions? 
 Is there any API functions? Or should I modify callback function prototype to include access_message_rx_t or similar ones?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Mar 2020 12:02:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58841/how-to-find-source-destination-address-within-mesh-model-callback-function" /><item><title>RE: How to find source/destination address within mesh model callback function?</title><link>https://devzone.nordicsemi.com/thread/239089?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 12:02:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4537f89d-8a48-46ce-aab6-d904ef99bb59</guid><dc:creator>choehyunho</dc:creator><description>&lt;p&gt;Mistake is mine.&lt;/p&gt;
&lt;p&gt;I have confused with other callbacks in SDK.&lt;/p&gt;
&lt;p&gt;access_message_rx_meta_t has the required information in it.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find source/destination address within mesh model callback function?</title><link>https://devzone.nordicsemi.com/thread/239050?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 10:24:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29d4c3a9-7aba-4aa9-9fb8-1b6637f4f980</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Ah sorry I miss understood your question. In that case, yes you can modify the code inside p_rx_msg. As long as it doesn&amp;#39;t change the behavior of the module (regarding Mesh activity), it&amp;#39;s fine.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find source/destination address within mesh model callback function?</title><link>https://devzone.nordicsemi.com/thread/239048?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 10:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:228d7536-852c-452d-a58f-c3e8d6163d92</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You can get the src and dst of any message regardless which model it is. Please check the p_rx_msg for example in the model call back handler. It&amp;#39;s the variable with&amp;nbsp;&lt;span&gt;access_message_rx_t&amp;nbsp; format:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x270/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c0b89df366234227949f5901704e0825/pastedimage1583835782018v1.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;s inside&amp;nbsp;p_rx_msg&amp;nbsp;-&amp;gt;meta_data&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find source/destination address within mesh model callback function?</title><link>https://devzone.nordicsemi.com/thread/238968?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 03:21:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b320a130-a6ab-4f7b-9665-85396e5f9a50</guid><dc:creator>choehyunho</dc:creator><description>&lt;p&gt;I know.&lt;/p&gt;
&lt;p&gt;I meant, if I want to get addresses when I use BT SIG model implementation in Mesh SDK, I should modify SDK code.&lt;/p&gt;
&lt;p&gt;I just want to know whether there is no other way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to find source/destination address within mesh model callback function?</title><link>https://devzone.nordicsemi.com/thread/238910?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 16:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42a5b5f1-ea91-42b8-a915-363a54949828</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can find the meta information (source, destination) inside&amp;nbsp;access_message_rx_meta_t struct this struct is inside&amp;nbsp;access_message_rx_t p_message that you get in the call back for message in the model.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>