<?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 do I clear the Attribute Table?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42937/how-do-i-clear-the-attribute-table</link><description>Hello, 
 There are functions such as sd_ble_gatts_service_add. But, how do I clear the Attribute Table to replace it with a new one? I want to do this switching at runtime, but I see no function at all to do anything but add to it. 
 Thanks! 
 James</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Jan 2019 17:49:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42937/how-do-i-clear-the-attribute-table" /><item><title>RE: How do I clear the Attribute Table?</title><link>https://devzone.nordicsemi.com/thread/167751?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 17:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b7b0780-3508-401e-b510-23bd07d01530</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes,&amp;nbsp; &lt;span&gt;nrf_sdh_disable_request()&amp;nbsp;&lt;/span&gt;is the gentle way. You can also call&amp;nbsp;sd_softdevice_disable() directly. Using one of the two former calls avoids a reset, but calling&amp;nbsp;&lt;span&gt;NVIC_SystemReset() is also an option, but then you would have to use a retained register or a flag stored in flash to decide how the ATT table should be populated.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I clear the Attribute Table?</title><link>https://devzone.nordicsemi.com/thread/167748?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 17:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b39bcfb-0b2a-4cd0-9d45-03a9f7a2317c</guid><dc:creator>JamesB7</dc:creator><description>&lt;p&gt;Are all of the libraries coded to support this case properly (nrf_sdh_disable_request I assume), or would it be better to do it using NVIC_SystemReset? Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I clear the Attribute Table?</title><link>https://devzone.nordicsemi.com/thread/167630?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 12:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:413e7bf5-0a42-4061-8019-f988571e78da</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI James,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the only way to clear the Attribute table is to uninitialize the BLE protocol stack and then reinitialize the BLE protocol stack and then add the new services/characteristics/descriptors using&amp;nbsp;&lt;span&gt;sd_ble_gatts_service/characteristic/descriptor&amp;nbsp;_add().&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>