<?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>Bug in example light switch provisioner?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47116/bug-in-example-light-switch-provisioner</link><description>SDK Mesh 3.1 
 I was looking at the provisioner example, and noticed that in the function prov_helper_device_handles_load() there is: 
 
 But when i look at dsm_subnet_get_all(), the first argument should be mesh_key_index_t, not dsm_handle_t. Shouldn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 May 2019 09:43:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47116/bug-in-example-light-switch-provisioner" /><item><title>RE: Bug in example light switch provisioner?</title><link>https://devzone.nordicsemi.com/thread/187185?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 09:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3aab6b1-f95b-4490-a7af-fe1946c3e85e</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;So the correct way would be something like this?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t count = 1;
mesh_key_index_t key_indices[count] = {0};
ERROR_CHECK(dsm_subnet_get_all(key_indices, &amp;amp;count));
NRF_MESH_ASSERT(count == 1);
m_provisioner.p_dev_data-&amp;gt;m_netkey_handle = dsm_net_key_index_to_subnet_handle(key_indices[0]);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in example light switch provisioner?</title><link>https://devzone.nordicsemi.com/thread/187163?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 08:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c391ef67-03f5-44c8-bce3-e58a9327dd40</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I have confirmed with R&amp;amp;D that you are correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bug in example light switch provisioner?</title><link>https://devzone.nordicsemi.com/thread/186302?ContentTypeID=1</link><pubDate>Fri, 10 May 2019 08:09:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1589fa9b-ad7a-4e64-aeb0-4c9bd4b51829</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Yes, it seems like you are correct. Or you could use the dsm_subnet_get_all() function, but use the correct first argument. I will report this internally &amp;amp; get back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>