<?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>What does access model and model id refer to, respectively?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24163/what-does-access-model-and-model-id-refer-to-respectively</link><description>Hi, when reading the BLE Mesh example code, I got really bewildered by this function: 
 access_model_add
 
 and inside, there is this gem: 
 element_has_model_id
 
 I understand mesh &amp;quot;protocol&amp;quot; is concept-heavy, but I&amp;#39;m pretty sure neither notion</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Aug 2017 11:54:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24163/what-does-access-model-and-model-id-refer-to-respectively" /><item><title>RE: What does access model and model id refer to, respectively?</title><link>https://devzone.nordicsemi.com/thread/95166?ContentTypeID=1</link><pubDate>Tue, 08 Aug 2017 11:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a4298b5-f97b-4d78-8d74-914b8ebbb7f7</guid><dc:creator>Thomas Stenersen</dc:creator><description>&lt;p&gt;Hi Mitch996,&lt;/p&gt;
&lt;p&gt;There is no &amp;quot;access model&amp;quot;, the function is in the &lt;code&gt;access.c&lt;/code&gt; module and thus prefixed with &lt;code&gt;access_*&lt;/code&gt;. The function adds a model to the access layer, it is the component/layer that deals handles the element and model structure. Please have a look at the section about the access layer in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v0.9.1/md_doc_getting_started_basic_concepts.html?cp=4_3_0_3_1"&gt;introduction to Bluetooth mesh&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The model ID is a unique ID for every defined model. See section &amp;quot;3.7.2 Model identifier&amp;quot; in the Mesh profile specification. Only one instance of a model can be present on any element. The function &lt;code&gt;element_has_model_id()&lt;/code&gt; tests that this holds true.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;
Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>