KW36 GATT Client read characteristic descriptors

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

KW36 GATT Client read characteristic descriptors

1,899 Views
danieltseng
Contributor V

Environment: Two FRDM-KW36 installed Wireless Uart
We want to add GattClient_ReadCharacteristicDescriptor () to read characteristic on the GATT client side of wireless Uart  and  GattClient_WriteCharacteristicDescriptor () to change value.

I have referred toch 5.1.5 Reading and writing characteristic descriptors of Bluetooth Low Energy Application Developer Guide.pdf
The example in the second half of this chapter is not very clear how to add function, please provide the implement method?  I do n’t know where to add it?
(Relatively, is it necessary to add anything to the GATT server before this function can make it complete)


I also refer to HRS (Heart Rate Sensor), but it does not call GattClient_ReadCharacteristicDescriptor ()
pastedImage_1.png

 

Labels (2)
0 Kudos
Reply
1 Reply

1,784 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Daniel, I hope you're doing well!

 

The temperature Collector SDK has some instances were a Characteristic Descriptor is read or written:

 

  • The GattClient_WriteCharacteristicDescriptor function can be seen used in the BleApp_ConfigureNotifications function in the temperature_collector.c source file.
  • The GattClient_ReadCharacteristicDescriptor function can be seen used in the mAppServiceDisc_c case of the BleApp_StateMachineHandler function in the same source file. It's being used to read the handle of the mpCharProcBuffer structure.

 

This SDK example can be found in the following path:

<…\SDK_2.2.2_FRDM-KW36\boards\frdmkw36\wireless_examples\bluetooth\temp_coll>

 

Please let me know if you need any more information.

 

Best regards,

Sebastian