<?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>I have received handler db_disc_handler() from my choose service. How to read a data from?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22614/i-have-received-handler-db_disc_handler-from-my-choose-service-how-to-read-a-data-from</link><description>nRF52 SDK13 S132.
For example, I have handle from 0x180A service.
I want to read characteristic 0x2A24 from here.
How should do it?
In the watch window I can see event with parameters of this service.
On a screen attached watch window. 
How can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Jun 2017 13:18:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22614/i-have-received-handler-db_disc_handler-from-my-choose-service-how-to-read-a-data-from" /><item><title>RE: I have received handler db_disc_handler() from my choose service. How to read a data from?</title><link>https://devzone.nordicsemi.com/thread/88949?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 13:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27b5ee26-1392-4f11-a450-cf626f85e359</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;The events are usually received in ble_evt_dispatch(). And they are usually forwarded to for example on_ble_central_evt(). If there isn&amp;#39;t a case for BLE_GATTC_EVT_READ_RSP, you can add one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have received handler db_disc_handler() from my choose service. How to read a data from?</title><link>https://devzone.nordicsemi.com/thread/88948?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 13:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3af65cf-a13a-43d4-8d5d-bd140704548e</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Are You sure that I will receive this event in ble_evt_dispatch()???
Possible I&amp;#39;ll receive same event in&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void on_ble_central_evt(ble_evt_t * p_ble_evt)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Second there is no in SDK13 define BLE_GATTC_EVT_READ_RSP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have received handler db_disc_handler() from my choose service. How to read a data from?</title><link>https://devzone.nordicsemi.com/thread/88947?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 12:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cfadd5d-af4d-4860-b7ba-c2243f5e0a9c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can get it from the SoftDevice, in ble_evt_dispatch(). It is usually handled like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;switch (p_ble_evt-&amp;gt;header.evt_id)
{
    case BLE_GATTC_EVT_READ_RSP:
        
        break;
    default:
        // No implementation needed.
        break;
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have received handler db_disc_handler() from my choose service. How to read a data from?</title><link>https://devzone.nordicsemi.com/thread/88950?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 11:19:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:697ecb5e-708a-48a9-8763-4b1e78f0cc1d</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Thanks. Where can I get a BLE_GATTC_EVT_READ_RSP event?
I don&amp;#39;t have in my project this define.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have received handler db_disc_handler() from my choose service. How to read a data from?</title><link>https://devzone.nordicsemi.com/thread/88946?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2017 08:51:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6289969-2679-4758-8794-2f32a5dcd2ce</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Have you tried sd_ble_gattc_read(uint16_t conn_handle, uint16_t handle, uint16_t offset)?&lt;/p&gt;
&lt;p&gt;sd_ble_gattc_read(0x0000, 0x0012, 0x0000);&lt;/p&gt;
&lt;p&gt;Then you should get a BLE_GATTC_EVT_READ_RSP event with the characteristic value.&lt;/p&gt;
&lt;p&gt;See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v4.0.2/group___b_l_e___g_a_t_t_c___v_a_l_u_e___r_e_a_d___m_s_c.html?cp=2_4_0_1_1_2_2_3_4"&gt;this&lt;/a&gt; for MSC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>