<?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>Clear mesh 3.1.0 data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50778/clear-mesh-3-1-0-data</link><description>I was wondering what I have to do to clear all stored mesh data on flash. 
 
 Do I have to initialize the whole mesh, or can I init only a subset? 
 What do I have to do so that the data is not just invalidated, but actually wiped? 
 Is there an event</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 Aug 2019 13:12:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50778/clear-mesh-3-1-0-data" /><item><title>RE: Clear mesh 3.1.0 data</title><link>https://devzone.nordicsemi.com/thread/205053?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 13:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce5469dd-7b1d-473c-b355-9464ed1bc5d8</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Looks like you have to do something like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;mesh_stack_init(...);
nrf_mesh_evt_handler_add(...);
mesh_stack_config_clear();
if (flash_manager_is_stable()) {
	// Done
	return;
}
// Wait for NRF_MESH_EVT_FLASH_STABLE.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clear mesh 3.1.0 data</title><link>https://devzone.nordicsemi.com/thread/203649?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 14:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:261acc97-9c68-4eae-931f-9f60ba355549</guid><dc:creator>bart</dc:creator><description>&lt;p&gt;Thanks, the API documentation of&amp;nbsp;&lt;em&gt;mesh_stack_config_clear()&lt;/em&gt; doesn&amp;#39;t tell me if the data gets invalidated or wiped though, nor what event to wait for. I prefer not to use &lt;em&gt;mesh_stack_device_reset()&lt;/em&gt; to reset the device. I guess I could dive into that function to see what it&amp;#39;s waiting for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Clear mesh 3.1.0 data</title><link>https://devzone.nordicsemi.com/thread/203646?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 14:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81525b6a-f917-4d34-a123-5832151553bb</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can take a look at the Low Power Node example in the nRF5 SDK for Mesh v.3.2.0 for an example to how this is done.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the example;&amp;nbsp;&lt;br /&gt;Button 4: Reset the device (erases all mesh data).&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can find the source code and the project file of the example in the following folder:&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;InstallFolder&amp;gt;/examples/experimental_lpn&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim Jakobsen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>