<?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 delete key of Node side and provisioner side in Mesh</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36150/how-to-delete-key-of-node-side-and-provisioner-side-in-mesh</link><description>Hi all, 
 I using 1 Provisioner provisioning for some Nodes (light switch server) . If I have 5 Nodes in mesh network 
 I want to remove Node 4 from network and then add it to Network 
 beside Node , I use 
 mesh_stack_config_clear(); node_reset(); 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jul 2018 03:31:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36150/how-to-delete-key-of-node-side-and-provisioner-side-in-mesh" /><item><title>RE: How to delete key of Node side and provisioner side in Mesh</title><link>https://devzone.nordicsemi.com/thread/139493?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 03:31:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40abb187-59ab-4233-bba6-50c48486a512</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In question 2, I want to add light switch client model into light switch proxy server , as this video :&amp;nbsp;&lt;a href="https://www.youtube.com/watch?v=XthbU9NP0Yg"&gt;https://www.youtube.com/watch?v=XthbU9NP0Yg&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So , I need appkey handle for bind to client model . But I can&amp;#39;t find it in project . So I want to ask you how I can find out this function . Now , I fixed code appkey_handle = 0 and 2 model can work fine as your video . But I want to find out appkey handle by function code . I know when provisioner provisioning for light switch server , we&amp;nbsp;&lt;span lang="en"&gt;exchange key and appkey handle&amp;nbsp;&lt;/span&gt;&lt;span lang="en"&gt;was created. So , what function on project can help me? Thank!!!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to delete key of Node side and provisioner side in Mesh</title><link>https://devzone.nordicsemi.com/thread/139418?ContentTypeID=1</link><pubDate>Mon, 09 Jul 2018 12:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a6b9568-5265-4834-97ed-287f24e3def8</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Giang,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As I mentioned, you need to implement code in your provisioner to assign the newly free address to the provisionee. You need to have a look at how we define and calculate the &amp;nbsp;m_nw_state.next_device_address. You would need to make it a little bit smarter to re-use address that has been removed from the network. It&amp;#39;s not suggested though.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The easier way is to increase max Node above 30. I don&amp;#39;t think you would have a problem doing so.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that we don&amp;#39;t suggest user to use nRF52 as provisioner, but you better use a computer or phone to work as provisioner. This way it&amp;#39;s easier to re-configure and store provisioning data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your second question, could you be more clear ? You mean you want to add a light switch model to the server node ? Be aware that they have to be on different element.&amp;nbsp;You need to be more specific on the appkey handler you are asking. The app key is assigned to a model when configuration. The server app key and the client app key should be the same so they can talk to each other.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to delete key of Node side and provisioner side in Mesh</title><link>https://devzone.nordicsemi.com/thread/139367?ContentTypeID=1</link><pubDate>Mon, 09 Jul 2018 06:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:597c5255-812b-4620-aaaa-a9836abd67fa</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I define Network have 30 Node is max.&lt;/p&gt;
&lt;p&gt;When I remove Node 5 from Network and add it again and Provisioner consider it is Node 6 , If I continue remove it and add it . Provisioner consider it is Node 7 ... So when Provisioner consider it is Node 30 . R&lt;span&gt;eality , My network only have 5 Node &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;:(( Can you suggest for this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And&amp;nbsp;I want to ask more : In light switch server , when I want add more 1 light switch client , But I dont find out appkey handler in project for bind to client . Can you help me ? Thank very much.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to delete key of Node side and provisioner side in Mesh</title><link>https://devzone.nordicsemi.com/thread/139277?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 13:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6396e0a-8deb-4881-9da9-8e8cce6a4399</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Giang,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Currently there is no definition in Mesh spec on how the provisioner should re-use a deleted node&amp;#39;s address. All new node address should be the increment of the last provisioned address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have a problem having a new address for node #4 ? If you want to keep track of active node, you can use heart beat.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to have the ability to reuse a removed address, I think it&amp;#39;s possible, however you need to implement the code yourself. Two things need to be done, next address to be assigned, and update the devicekey assigned for the node.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basically if you call&amp;nbsp;clear_app_data() it clears all the flash stored data and when you call&amp;nbsp;mesh_stack_config_clear() it clears all the RAM data of the configuration of the node. Meaning if you call that on a provisioner, it will forget everything about all the nodes in the network.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you really need to keep the address of a node that you remove from the network ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also please be aware that when you send&amp;nbsp;config_client_node_reset() to tell a node to reset itself, there is no guarantee that the node will follow the command and remove the network key. If you want to make sure you force a node out of the network, you would need to do a keyrefresh with that node blacklisted.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>