<?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 get UUID of Characteristic from a ble_evt_t?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17692/how-to-get-uuid-of-characteristic-from-a-ble_evt_t</link><description>Hello: 
 I am writing a BLE profile involving several characteristics. One of the characteristics is an operation code (read/write) tunnel. 
 Each time a BLE central device writes to the BLE peripheral (nRF51 10028 board), I would like to check the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Nov 2016 07:03:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17692/how-to-get-uuid-of-characteristic-from-a-ble_evt_t" /><item><title>RE: How to get UUID of Characteristic from a ble_evt_t?</title><link>https://devzone.nordicsemi.com/thread/68068?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 07:03:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aabf003-63a6-4cf1-86c2-07728b95e55d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Np :) You just got me a but confused.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get UUID of Characteristic from a ble_evt_t?</title><link>https://devzone.nordicsemi.com/thread/68065?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 04:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac93f1da-c54c-4feb-8821-210ff8122015</guid><dc:creator>Shiba Inu</dc:creator><description>&lt;p&gt;Don&amp;#39;t sweat it. Thanks for replying to the question though, :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get UUID of Characteristic from a ble_evt_t?</title><link>https://devzone.nordicsemi.com/thread/68067?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 04:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8975b36-7950-431f-8d06-760adbab1fe2</guid><dc:creator>Shiba Inu</dc:creator><description>&lt;p&gt;Thank you. I should&amp;#39;ve made it more clearer in my question that all I really was trying to do was to retrieve the UUID of a p_ble_evt that I receive from a BLE write event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get UUID of Characteristic from a ble_evt_t?</title><link>https://devzone.nordicsemi.com/thread/68066?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 10:12:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2420c4b0-c4f1-481a-b611-ee29f77eba32</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Your code doesn&amp;#39;t make sense to me. Does it work? Have you tested it? If you get a BLE_GATTS_EVT_WRITE event, the UUID should be in p_ble_evt-&amp;gt;evt.gatts_evt.params.write.uuid&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get UUID of Characteristic from a ble_evt_t?</title><link>https://devzone.nordicsemi.com/thread/68064?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 10:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31c0e08e-d525-4829-a802-df7502ddf09c</guid><dc:creator>Artucas</dc:creator><description>&lt;p&gt;Oh, i am sorry. I accidentally converted your comment to the answer. Sorry for that.I think now i understand what you want to do, however i got no clue why do you want to do it that way. Anyway, i don&amp;#39;t know the answer to that right now. I&amp;#39;ll try to test it and give you the feedback as soon as possible. Maybe in the meantime you will get an answer from someone else here who knows that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get UUID of Characteristic from a ble_evt_t?</title><link>https://devzone.nordicsemi.com/thread/68070?ContentTypeID=1</link><pubDate>Mon, 14 Nov 2016 03:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:409b057f-5864-4ef3-8cee-f53917453002</guid><dc:creator>Shiba Inu</dc:creator><description>&lt;p&gt;Thank you for responding. Sorry if I did not make my situation clear.&lt;/p&gt;
&lt;p&gt;I am writing my own service with three different characteristics. Each characteristic has its own UUID (0x2000, 0x2001, and 0x2002). And I do have a function that responds to BLE_GATTS_EVT_WRITE&amp;#39;s, as in, anytime a characteristic is update, either from a central or the peripheral device (on which I am running this application), the evt_write dispatch method (provided above) is invoked.&lt;/p&gt;
&lt;p&gt;My objective right now is to be able to get the UUID of the characteristic being written.I was just inquiring as to if it was possible to get the UUID of the written characteristic from the ble_evt_t that is provided by the on_ble_evt(ble_evt_t * p_ble_evt) method in the main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get UUID of Characteristic from a ble_evt_t?</title><link>https://devzone.nordicsemi.com/thread/68069?ContentTypeID=1</link><pubDate>Sun, 13 Nov 2016 09:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aedc332-821d-45c7-9d0d-10ed44ab7b6b</guid><dc:creator>Artucas</dc:creator><description>&lt;p&gt;If i understoond your question correctly, then the answer would be no. The proper way is setting your own custom service with your characteristics. That way you can set up to get a callback when you have written something to any of your characteristics. You can set up a single handler for many characteristics and just check the value that you have written, or you can set up a different handler for every characteristic. That is up to you. How to set up your own service with characteristics can be found here:
&lt;a href="https://devzone.nordicsemi.com/tutorials/8/"&gt;BLE Services&lt;/a&gt;, &lt;a href="https://devzone.nordicsemi.com/tutorials/17/"&gt;BLE Characteristics&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>