<?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>don&amp;#39;t understand what the handle do</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35592/don-t-understand-what-the-handle-do</link><description>Hi I sit with light demo and can not understand what the handle and p_args do 
 
 
 can someone explain it to me</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jun 2018 14:03:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35592/don-t-understand-what-the-handle-do" /><item><title>RE: don't understand what the handle do</title><link>https://devzone.nordicsemi.com/thread/137709?ContentTypeID=1</link><pubDate>Tue, 26 Jun 2018 14:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10779373-42cd-4076-b18b-4962ea44519b</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the delayed response.&lt;/p&gt;
&lt;p&gt;The handle is the same as the one returned through the &lt;code&gt;p_model_handle&lt;/code&gt; parameter of &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.0.1%2Fgroup__ACCESS.html&amp;amp;anchor=gaf7e222292b13b6796198dce99d69538c"&gt;access_model_add()&lt;/a&gt;, and it identifies the model instance that received the message. It only becomes useful once you have multiple instances of the same model. In the simple on/off model, the &lt;code&gt;p_args&lt;/code&gt; argument is used for this purpose, but for more complex models, this isn&amp;#39;t necessarily possible.&lt;/p&gt;
&lt;p&gt;In case you are familiar with BLE and the nRF5 SDK and SoftDevices, it is analogous to the concept of characteristic handles in BLE.&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: don't understand what the handle do</title><link>https://devzone.nordicsemi.com/thread/137230?ContentTypeID=1</link><pubDate>Fri, 22 Jun 2018 10:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6218e63-b2d2-4a04-b4f6-e96b189f6552</guid><dc:creator>pca10056</dc:creator><description>&lt;p&gt;no i mean what does the access_model_handle_t handle do, i have read that chapter refer to and there are nothing about access_model_handle_t handle&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: don't understand what the handle do</title><link>https://devzone.nordicsemi.com/thread/137149?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 15:25:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd7d5205-144d-47d1-9385-a2ff98080a0e</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is part of our simple on/off model implementation. We do have a fairly detailed walk-through of it in the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.0.1%2Fmd_doc_getting_started_how_to_models.html"&gt;Creating new modules&lt;/a&gt; chapter of the nRF5 SDK for Mesh v2.0.1 documentation, and it covers the details of the handle_status_cb() function. I highly recommend going through the full page on how to implement a model, in order to thoroughly understand how things fit together.&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>