<?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 I can remove GATT service but not reset chip ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46021/how-i-can-remove-gatt-service-but-not-reset-chip</link><description>Hi all, I use NRF52832. 
 I have a problem. I want when I connect to my chip and bond. After bond success, I insert new service. And when I disconnect from my chip, new service will be removed. This is to prevent others from reading my service. Now, I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Apr 2019 07:31:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46021/how-i-can-remove-gatt-service-but-not-reset-chip" /><item><title>RE: How I can remove GATT service but not reset chip ?</title><link>https://devzone.nordicsemi.com/thread/181466?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 07:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:150222dd-113e-4874-867c-6773fdd2d87b</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Can you show me How I can disable and reinit SD ?&lt;/p&gt;
&lt;p&gt;I follow step for disable SD :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;err_code = sd_softdevice_disable();&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; sd_softdevice_is_enabled(&amp;amp;res);&lt;br /&gt; if(res)&lt;br /&gt; {&lt;br /&gt; NRF_LOG_INFO(&amp;quot;SD is disabled&amp;quot;);&lt;br /&gt; }&lt;br /&gt; else&lt;br /&gt; {&lt;br /&gt; NRF_LOG_INFO(&amp;quot;SD is enabled&amp;quot;);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;But It printf &amp;quot;&lt;span&gt;SD is disabled&amp;quot; but my chip still advertising. Why ? And when I reinit SD by funtion&amp;nbsp;&lt;/span&gt;&lt;span&gt;ble_stack_init(); It return error NRF_ERROR_INVALID_STATE ,&amp;nbsp;&amp;nbsp;m_nrf_sdh_enabled = true .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank&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 I can remove GATT service but not reset chip ?</title><link>https://devzone.nordicsemi.com/thread/181433?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 02:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:489509ea-151b-4b2b-913c-da1ed789343e</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Thank for reply,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t add whitelist because my device accept any mobile connect to it. After 30s if not bond, my device will disconnect. But within 30s, others can see my services. And I don&amp;#39;t want it. Only device can bond to my device, it is&amp;nbsp; posible see my services. So I think if I&amp;nbsp;disconnect after bond, I have to remove service .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How I can remove GATT service but not reset chip ?</title><link>https://devzone.nordicsemi.com/thread/181338?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 13:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f89a64e-5dae-45e7-bff1-0bed785380b1</guid><dc:creator>cbd</dc:creator><description>&lt;p&gt;Hi Giang,&lt;/p&gt;
&lt;p&gt;Why do you need to remove the service? Wouldn&amp;#39;t adjusting the security parameters do just as well?&lt;/p&gt;
&lt;p&gt;Points to note:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Other devices can only accesses your services once they have connected.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Service UUIDs are only included within the advertising packet if you specify it.&lt;/li&gt;
&lt;li&gt;As you are bonding you can restrict all connections to bonded devices /whitelist only.&lt;/li&gt;
&lt;li&gt;If you only allow one connection at a time then whilst a device is connected no others can read the data.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>