KW36 GATT Client read characteristic descriptors

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

KW36 GATT Client read characteristic descriptors

1,933 次查看
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 to”ch 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

 

标签 (2)
0 项奖励
回复
1 回复

1,818 次查看
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