<?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>Change BLE attribute dynamically on NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118809/change-ble-attribute-dynamically-on-ncs</link><description>HI, 
 I am working on a NRF54L15 with NCS 2.9. I have a service my_service created with BT_GATT_SERVICE_DEFINE, with two characteristics, &amp;quot;Protected&amp;quot; and &amp;quot;Password&amp;quot;. &amp;quot;Protected&amp;quot; is read-only and &amp;quot;Password&amp;quot; is read-write.I would like to know if it is possible</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Feb 2025 13:37:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118809/change-ble-attribute-dynamically-on-ncs" /><item><title>RE: Change BLE attribute dynamically on NCS</title><link>https://devzone.nordicsemi.com/thread/522657?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 13:37:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c5a5f22-60fd-40f0-a75d-5a0c10b24a7f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not believe there is any way to just modify the service dynamically. However, it should be possible to unregister and register a modified service that happens to be the same except for change to the permissions of one characteristic. (using&amp;nbsp;bt_gatt_service_register() and&amp;nbsp;bt_gatt_service_unregister()).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change BLE attribute dynamically on NCS</title><link>https://devzone.nordicsemi.com/thread/522406?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2025 11:12:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c0cff6b-1537-4ee1-9ecb-e0e658330f87</guid><dc:creator>Beldramma</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/khelmutlord"&gt;khelmutlord&lt;/a&gt; ,&lt;/p&gt;
&lt;p&gt;Thanks for the link, it seems interesting, but if I understand well it is used to add dynamically a service.&lt;/p&gt;
&lt;p&gt;What I want to do is to modify an existing service, and if possible if a client is already connected.&lt;/p&gt;
&lt;p&gt;More specifically, I want to modify the permissions of a characteristic.&lt;/p&gt;
&lt;p&gt;I can see that you enable the &amp;quot;Service changed&amp;quot; characteristic from the GATT service, do you think it can manage my case ?&lt;/p&gt;
&lt;p&gt;Do you have an example of implementation for my case ?&lt;/p&gt;
&lt;p&gt;Thanks in advance !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change BLE attribute dynamically on NCS</title><link>https://devzone.nordicsemi.com/thread/522297?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2025 19:13:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebda5988-1471-43b8-b8e2-ffc820c89fcd</guid><dc:creator>khelmutlord</dc:creator><description>&lt;p&gt;I have a pending PR that should help w/ dynamic service creation.&amp;nbsp;&lt;a id="" href="https://github.com/zephyrproject-rtos/zephyr/pull/84401"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/84401&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is not currently a sample that demonstrates how to use these APIs.&lt;/p&gt;
&lt;p&gt;Let me know if this helps!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>