<?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>Service Changed Characteristic example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111240/service-changed-characteristic-example</link><description>Hello, 
 Do you have an example that allows you to use the “Service Changed Characteristic” on the server side? 
 In fact, I saw on the internet that on IOS, we have to use this service so that the phone&amp;#39;s cache is reset if we change the device name in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 May 2024 08:35:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111240/service-changed-characteristic-example" /><item><title>RE: Service Changed Characteristic example</title><link>https://devzone.nordicsemi.com/thread/485320?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 08:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa813950-9b3a-4f18-ab76-aca12df93af7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!,&lt;/p&gt;
&lt;p&gt;The Bluetooth Host in Zephyr does not expose a API for this, but handles it itself if it sees changes in the services.&lt;/p&gt;
&lt;p&gt;As an experiment, you could try to expose the&amp;nbsp;sc_indicate() function. Other users seems to have had success with that:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109080/force-gatt-client-to-sync-database-with-zephyr/473238"&gt;RE: Force GATT client to sync database with Zephyr&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service Changed Characteristic example</title><link>https://devzone.nordicsemi.com/thread/485293?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 07:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91725811-99a4-4abb-b8b1-87068bcce374</guid><dc:creator>QuentinD</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/111240/service-changed-characteristic-example/485236"]You changed the name with bt_set_name(), or CONFIG_BT_DEVICE_NAME in prj.conf?[/quote]
&lt;p&gt;Both: I put a value in CONFIG_BT_DEVICE_NAME to have a default value but if the user wants to change the device name, I call the bt_set_name() function.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/111240/service-changed-characteristic-example/485236"]A change to a characteristic value is not considered a modification of the service.[/quote]
&lt;p&gt;Yes I know.&amp;nbsp;The goal would be to use this service to refresh the cache of the IOS phone (I don&amp;#39;t know if it works but as I saw on the internet that doing like that would solve my problem. So I would like to be able to do the test).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service Changed Characteristic example</title><link>https://devzone.nordicsemi.com/thread/485236?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 22:26:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca9ade94-26be-4913-92c7-c9d6db98a940</guid><dc:creator>Sigurd</dc:creator><description>[quote user="QuentinD"]Is there a function I need to call when I change the device name?[/quote]
&lt;p&gt;You changed the name with bt_set_name(), or CONFIG_BT_DEVICE_NAME in prj.conf?&lt;/p&gt;
&lt;p&gt;Note that the Service Changed&amp;nbsp;&lt;span&gt;Characteristic&lt;/span&gt; is used to indicate to connected devices that services have changed (i.e., added, removed or modified).&lt;br /&gt;A change to a characteristic value is not considered a modification of the service.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service Changed Characteristic example</title><link>https://devzone.nordicsemi.com/thread/485184?ContentTypeID=1</link><pubDate>Tue, 21 May 2024 14:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bc18ca8-0826-49b7-bdfb-6ed2010e2936</guid><dc:creator>QuentinD</dc:creator><description>&lt;p&gt;Is there a function I need to call when I change the device name?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service Changed Characteristic example</title><link>https://devzone.nordicsemi.com/thread/484746?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 15:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a27ec57-2de3-4dbc-9df1-d7642244ebde</guid><dc:creator>QuentinD</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes CONFIG_BT_GATT_SERVICE_CHANGED=y&lt;/p&gt;
&lt;p&gt;In the nrf_connect app, I set the Generic Attribute / Service Changed&amp;quot; to the value &amp;quot;Indications enabled&amp;quot;. Then, I modify the &amp;quot;Device name&amp;quot; but I do not receive any notification telling me that there has been a modification of the Device name : do you know why ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service Changed Characteristic example</title><link>https://devzone.nordicsemi.com/thread/484685?ContentTypeID=1</link><pubDate>Thu, 16 May 2024 12:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca06851-2da2-4900-9425-2d846044f4d4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not aware of any examples, but it should not be very complicated. Make sure that you have&amp;nbsp;&lt;span&gt;CONFIG_BT_GATT_SERVICE_CHANGED set to y&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>