<?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>Set up a read only BLE characteristic</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101024/set-up-a-read-only-ble-characteristic</link><description>Hello DevZone, 
 
 I have a nRF52832 as BLE peripheral and a nRF52840 as central and I would like to implement a read only characteristic on the peripheral. I am using SDK 17.0.2 
 I know how to set up the characteristic and using NRFConnect I am able</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jul 2023 13:19:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101024/set-up-a-read-only-ble-characteristic" /><item><title>RE: Set up a read only BLE characteristic</title><link>https://devzone.nordicsemi.com/thread/434237?ContentTypeID=1</link><pubDate>Mon, 03 Jul 2023 13:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a816aef-46bd-4e82-aac5-34b1762028c8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;you need to read it from server, so &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v7.0.1%2Fgroup___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=gad95321e157e632e7ac3a77f3388cbdf7"&gt;sd_ble_gatts_value_get&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up a read only BLE characteristic</title><link>https://devzone.nordicsemi.com/thread/433874?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 08:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb20ed3e-9973-4d3c-93df-fe126102f0e4</guid><dc:creator>T IJ</dc:creator><description>&lt;p&gt;Thank you for your answer. I will try to implement this. I imagine I have to use sd_ble_gattc_value_get in order to read the data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up a read only BLE characteristic</title><link>https://devzone.nordicsemi.com/thread/433474?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 13:01:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5b5fa76-8e01-4d8e-ae94-03c89c229df2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Sorry for the late reply Tom, I was thinking that I replied to this thread before leaving to vacation, not sure what happened but it was not intentional.&amp;nbsp;&lt;/p&gt;
[quote user=""]I know how to set up the characteristic and using NRFConnect I am able to read from the characteristic but I do not know how to update the data on the peripheral side. I was able to use the p_init_value pointer to set the data but I am not able to update it afterwards.[/quote]
&lt;p&gt;Have you tried using &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html#ga2760c51ea71853bd74e2e7e7117ef52a"&gt;sd_ble_gatts_value_set&lt;/a&gt;. This should be enough to set the value of the characteristic up to date when you have new data. I am not sure why you do not want to have notifications enabled for this, but the above function seems enough in your case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set up a read only BLE characteristic</title><link>https://devzone.nordicsemi.com/thread/433104?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 07:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b84d3f04-1f24-4b3e-b769-37500c783168</guid><dc:creator>T IJ</dc:creator><description>&lt;p&gt;Anyone?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>