<?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>How to periodically read peripheral data?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67515/how-to-periodically-read-peripheral-data</link><description>Can I periodically or continuously read the characteristic of peripheral after the connection? 
 If there is a change in the value in peripheral, then the value is received in central. (Should &amp;#39;BLE_GATTC_EVT_CHAR_VAL_BY_UUID_READ_RSP&amp;#39; be used?) 
 (Central</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Oct 2020 09:33:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67515/how-to-periodically-read-peripheral-data" /><item><title>RE: How to periodically read peripheral data?</title><link>https://devzone.nordicsemi.com/thread/276392?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 09:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dfa58ad-8522-455b-afa1-53c77b4758e1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;That really depends on the peripheral, but if it is your own peripheral, I suggest you look into notifications. Our central example ble_app_uart_c is intended to work with the peripheral example ble_app_uart, which uses notifications.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There are several ways to send/receive data in BLE. One possibility is that the central reads the characteristic. There are a few different approaches to this (with and without authentication), but if you want the central to be notified whenever the peripheral changes the value of the characteristic, then notifications&amp;nbsp;are definitely the way to go.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Look at how the notifications are implemented in the ble_app_uart example. I don&amp;#39;t know what your peripheral project device is. Is it an nRF? Did you write the code yourself?&lt;/p&gt;
&lt;p&gt;Notifications also needs to be enabled by the central. The ble_app_uart_c example does this in the discovery complete event. See how it uses&amp;nbsp;ble_nus_c_tx_notif_enable() and how this is implemented.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>