<?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>close HID Service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43524/close-hid-service</link><description>I am now based on nrf52832 SDK14.2 development, nrf52832 as a peripheral device, I want to connect with IOS phone, nrf52832 provides HID Service, but when connected with Android phone, Service should close HID Service, how should I operate? Thank you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Feb 2019 13:18:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43524/close-hid-service" /><item><title>RE: close HID Service</title><link>https://devzone.nordicsemi.com/thread/170370?ContentTypeID=1</link><pubDate>Mon, 11 Feb 2019 13:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55a243d5-f6b1-4f0f-8b5e-96f5c44f7baf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jim,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If possible could you tell a little bit more about the purpose of the application ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dynamically remove a service in the attribute table is not supported by our softdevice yet.&amp;nbsp;&amp;nbsp;But what you can do is to connect and check if it&amp;#39;s Android or iOS. If it&amp;#39;s Android you can quickly disconnect, disable the softdevice and enable it again, this time without initiate the HID service and then reconnect. It can take less than a second and make it transparent to the customer. When you do that you need to make sure you sent the Service Changed indication so that the phone would do service discovery again.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>