<?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>Self provisioning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84727/self-provisioning</link><description>Hi; 
 i am using sdk 17.0.2 and mesh 5.0.0. 
 i am using light switch instance.In addition, the system works properly when provisioning is made with a smartphone. 
 I want self provisioning in this example. In other words, I want it to know both its own</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Mar 2022 06:31:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84727/self-provisioning" /><item><title>RE: Self provisioning</title><link>https://devzone.nordicsemi.com/thread/355931?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 06:31:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:247943e2-8f6c-4637-ae7c-175dda238ac4</guid><dc:creator>saban</dc:creator><description>&lt;p&gt;Thanks Mttrinh.magic codes access_model_publish_application_set() and access_model_publish_address_set().&amp;nbsp;what you said with nice results. My code and it works fine. Here are the passwords.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; m_group_handle = DSM_HANDLE_INVALID;
    dsm_local_unicast_address_t local_address = {0x0020, ACCESS_ELEMENT_COUNT};
    ERROR_CHECK(dsm_local_unicast_addresses_set(&amp;amp;local_address));
    ERROR_CHECK(dsm_address_publish_add(0x0011, &amp;amp;m_group_handle));
    ERROR_CHECK(dsm_subnet_add(0, m_netkey, &amp;amp;m_netkey_handle));
    ERROR_CHECK(dsm_appkey_add(0, m_netkey_handle, m_appkey, &amp;amp;m_appkey_handle));

    ERROR_CHECK(access_model_application_bind(m_clients_simple.model_handle, m_appkey_handle));
    ERROR_CHECK(access_model_publish_application_set(m_clients_simple.model_handle, m_appkey_handle));
    ERROR_CHECK(access_model_publish_address_set(m_clients_simple.model_handle, m_group_handle));
    ERROR_CHECK(access_model_application_bind(server.model_handle, m_appkey_handle));

    dsm_handle_t subscription_address_handle;
    dsm_address_subscription_add(CLIENT_PUB_GROUP_ADDRESS_EVEN, &amp;amp;subscription_address_handle);

    access_model_subscription_add(m_clients_simple.model_handle, subscription_address_handle);
    access_model_subscription_add(server.model_handle, subscription_address_handle);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Self provisioning</title><link>https://devzone.nordicsemi.com/thread/353310?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 09:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82f67b3c-5729-420d-b876-177c7c3427c5</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looking at your code snippet, you would probably need to call &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/group__ACCESS__CONFIG__MODEL.html#ga51b3f1502d44f7b7b069466aaf76a270" rel="noopener noreferrer" target="_blank"&gt;access_model_publish_application_set()&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/group__ACCESS__CONFIG__MODEL.html#ga8175f153b1c6c86edffc5a95a68bf8eb" rel="noopener noreferrer" target="_blank"&gt;access_model_publish_address_set()&lt;/a&gt;&amp;nbsp;as well. Function access_model_publish_address_set() need to be called i&lt;span&gt;f you want to change the publication address of a model on a node locally.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also suggest have a look into the light switch client example from &lt;a href="https://www.nordicsemi.com/Products/Development-software/nRF5-SDK-for-Mesh/Download?lang=en#infotabs" rel="noopener noreferrer" target="_blank"&gt;nRF5 Mesh SDK v1.0.1&lt;/a&gt;, In this version the client and provisioner was combined. The SDK version is really old but the example is a good source of reference if you want to combine the two.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Self provisioning</title><link>https://devzone.nordicsemi.com/thread/353063?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 10:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8551403b-8471-4617-b5dc-ccb751584209</guid><dc:creator>saban</dc:creator><description>&lt;p&gt;my english can be bad.i am sorry.Yes.&amp;nbsp;&amp;nbsp;i having problem trying to set the publication address.I couldn&amp;#39;t find a clear example or tutorial on this subject.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Self provisioning</title><link>https://devzone.nordicsemi.com/thread/352977?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 18:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fc8ad2d-6e64-4075-a9b5-01dca5733132</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Im a bit confused by what you are trying to do here. Are you having problem trying to set the publication address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>