<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access to BLE UUID128 from custom profile in server in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729043#M3974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have more questions, please let us know&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2017 20:10:53 GMT</pubDate>
    <dc:creator>stephanie_m</dc:creator>
    <dc:date>2017-12-11T20:10:53Z</dc:date>
    <item>
      <title>Access to BLE UUID128 from custom profile in server</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729040#M3971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear community I am using the FRDM KW41Z and the example heart-rate-sensor for developing my own communication with an android application. I used the tutorials for setting server and clients using the BLE stack. However, I got stuck at a problem.&lt;/P&gt;&lt;P&gt;I would like to access to the UUID128 of my two characteristics to store received values in the data base. I understood the tutorials to getting the handles of the characteristics and then store the values into the database. And for getting the handles I need to send the UUID from the characteristics when using following function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uuidBikeCharacteristicWrite-&amp;gt;uuid128 = uuid_characteristic_bike_write;&lt;/P&gt;&lt;P&gt;result |= GattDb_FindCharValueHandleInService(serviceHandle, gBleUuidType128_c, uuidBikeCharacteristicWrite, &amp;amp;characteristicWritehandle);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error when I compile the code. And the tutorials use macros for getting their UUID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;bleUuid_t&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0088e1; background-color: #ffffff; border: 0px; font-size: 12px;"&gt;uuid&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 12px;"&gt;&amp;nbsp;=&amp;nbsp;Uuid16(gBleSig_Humidity_d);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not found a similar macro or function for getting the uuid128 like that. How can I solve this issue? and are there any examples provided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 17:20:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729040#M3971</guid>
      <dc:creator>robertnäger</dc:creator>
      <dc:date>2017-11-22T17:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Access to BLE UUID128 from custom profile in server</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729041#M3972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked this post6s ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-332703"&gt;Creating a custom profile using NXP BLE stack – Server&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-328287"&gt;https://community.nxp.com/docs/DOC-328287&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 17:43:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729041#M3972</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2017-12-05T17:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Access to BLE UUID128 from custom profile in server</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729042#M3973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it works now. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 18:46:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729042#M3973</guid>
      <dc:creator>robertnäger</dc:creator>
      <dc:date>2017-12-11T18:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Access to BLE UUID128 from custom profile in server</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729043#M3974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have more questions, please let us know&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2017 20:10:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729043#M3974</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2017-12-11T20:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Access to BLE UUID128 from custom profile in server</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729044#M3975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had exact same issue today and solved it. For the future reference, just add a line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "gatt_db_handles.h"&lt;/P&gt;&lt;P&gt;would solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More details:&lt;/P&gt;&lt;P&gt;I followed "&lt;A href="https://community.nxp.com/docs/DOC-332703"&gt;Creating a custom profile using NXP BLE stack – Server&lt;/A&gt; " and run into this issue. The article doesn't cover this detail.&lt;/P&gt;&lt;P&gt;But it is actually explained in the document BLEADG, section 7.1.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in file gatt_uuid128.h, we do:&lt;/P&gt;&lt;P&gt;UUID128(uuid_xxx_xxx, 0xAA, 0xBB, 0xCC, ... 0xFF)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the C sources where we need to refer to this uuid128, include "gatt_db_handles.h", which expands the macro UUID128().&lt;/P&gt;&lt;P&gt;After that we can use symbol "uuid_xxx_xxx" with GATT functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2019 10:42:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Access-to-BLE-UUID128-from-custom-profile-in-server/m-p/729044#M3975</guid>
      <dc:creator>Xiang_Li</dc:creator>
      <dc:date>2019-12-21T10:42:13Z</dc:date>
    </item>
  </channel>
</rss>

