<?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>start/stop dfu buttonless service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92020/start-stop-dfu-buttonless-service</link><description>good day, 
 
 i am using nrf52832 (pca10040) with sdk17.1 and would like to hide/stop the buttonless du service and only make it appear when a command is received. but based on some previous question, it can only be done if we unintialize and initialize</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Sep 2022 06:46:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92020/start-stop-dfu-buttonless-service" /><item><title>RE: start/stop dfu buttonless service</title><link>https://devzone.nordicsemi.com/thread/386764?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 06:46:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:471ce382-7cd3-4857-91c1-77b0c327ad84</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. But may I ask &lt;em&gt;why&lt;/em&gt; you want that? From a high-level perspective, what is the reasoning for it? The reason I ask is that this is not a common thing to do, and perhaps there would be another way to achieve your main goal (whatever the reason for wanting this feature is).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: start/stop dfu buttonless service</title><link>https://devzone.nordicsemi.com/thread/386759?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 02:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa79fdd4-5347-47b0-9d7b-5fae484ac6fe</guid><dc:creator>xtian</dc:creator><description>&lt;p&gt;we wanted the buttonless dfu service to be initially disabled/hidden and will only show up after receiving a command and will be hidden/disbled again after a certain time if the user did not update&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: start/stop dfu buttonless service</title><link>https://devzone.nordicsemi.com/thread/386623?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 11:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00d62f46-83a5-4320-8525-339e1fba4c87</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]it can only be done if we unintialize and initialize the BLE stack.[/quote]
&lt;p&gt;That is correct.&lt;/p&gt;
[quote user=""]is there an example on how to uninitialize/initialize the BLE stack?[/quote]
&lt;p&gt;No, there are no&amp;nbsp;examples of it, but the SoftDevice is disabled using&amp;nbsp;sd_softdevice_disable(). Note that most SDK libraries (like the SoftDevice handler library - SDH) assumes that the SoftDevice is only enabled, so you will need to do a bit of changes to support this.&lt;/p&gt;
&lt;p&gt;There is a reason removing services is not supported though. It is not a common thing to do, and it does not fit well with typical Bluetooth LE use cases (for instance, the GATT client will need to do a service discovery to know what has changed). May I ask why you want to do it? What is the end goal? Could it be that there are other and perhaps even better ways to achieve your end goal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>