<?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>Question about the value of p_ble_evt-&amp;gt;header.evt_id</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102207/question-about-the-value-of-p_ble_evt--header-evt_id</link><description>hello, 
 
 If you look at the function below in nrf_sdh_ble.c, &amp;quot; printf(&amp;quot;BLE event: 0x%x.&amp;quot;, p_ble_evt-&amp;gt;header.evt_id); &amp;quot; shows the value of &amp;#39;p_ble_evt-&amp;gt;header.evt_id&amp;#39;. 
 
 
 
 If you check the value for the connection status in the terminal window, 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jul 2023 11:38:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102207/question-about-the-value-of-p_ble_evt--header-evt_id" /><item><title>RE: Question about the value of p_ble_evt-&gt;header.evt_id</title><link>https://devzone.nordicsemi.com/thread/438055?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 11:38:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d4ba7c8-12d5-44da-95ac-49dbd962f012</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi PRK,&lt;/p&gt;
&lt;p&gt;0x10 =&amp;nbsp;BLE_GAP_EVT_CONNECTED&lt;/p&gt;
&lt;p&gt;0x55 =&amp;nbsp;&lt;span&gt;BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you take a look at ble_ranges.h you can find this:&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1690284900858v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;They are the event base. So 0x10 will be long to BLE_GAP_EVT_BASE. And in ble_gap.h you will find the events with the base 0x10:&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1690284954741v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For 0x55, it belongs to&amp;nbsp;BLE_GATTS_EVT_BASE (0x50) and in ble_gatts.h you will find that, start from 0x50,&amp;nbsp; 0x55 is equal to&amp;nbsp;BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1690285025414v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>