When creating a new service in KW36, set uuid128 and Declaring characterristic values

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

When creating a new service in KW36, set uuid128 and Declaring characterristic values

608 Views
SeokJin
Contributor II

Hello.

I'm currently building two-way BLE communication using two KW36 boards.

In this process, we want to trigger a ServerCallback by defining a new service.

To create a new service, I looked through various docs and examples from the KW36 SDK.

 

Chapter 7 -> '7.1.1 Declaring custom 128-bit UUIDs' of the BLE APP Developer's Guide states that a custom 128-bit UUID must be declared when creating a service. And in '7.1.3.2 Declaring characteristic values', it is specified that the characteristic value must be declared through a macro immediately after declaring the characteristic.

Here is the question.

The values of 'byte1', 'byte2', ..., 'byte16' included in "UUID128" and the values corresponding to 'valueByte1', 'valueByte2', ... included in "Characteristic value macro" are entirely Is it defined by the developer?

SeokJin_0-1710433479517.png

SeokJin_1-1710433628086.png

The pictures I attached are "gatt_uuid128.h" and "gatt_db.h" from the Wireless UART example of the KW36 SDK, respectively.

As you can see, the values of byte1, byte2, ..., byte16 of 'UUID128' are declared, and the values of valueByte1, valueByte2, ... of 'Characteristic value macro' are declared.

However, I wonder if the declared values were declared for a reason, or if they were created entirely at the developer's discretion without any particular reason.

 

I am waiting for your kind and detailed reply. thank you.

 

Regards,

SeokJin.

Labels (1)
0 Kudos
Reply
1 Reply

583 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. I would recommend checking this community post: KW38 Custom Profile - NXP Communit

There you can find a brief description of the services.

 

Also, as you mentioned, the complete information about GATT database can be found on the Bluetooth® Low Energy Application Developer’s Guide.

 

Regards,

Ricardo

0 Kudos
Reply