How to modify gatt_bd.h for UART read service

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

How to modify gatt_bd.h for UART read service

1,349 次查看
sihanchen
Contributor III

HI All, 

         I would like to add a service for UART read and I have modified the characteristic values that show as red word.

but I don't know how to setting the data size, could you please to tell me, if you know about that, thanks. 

PRIMARY_SERVICE_UUID128(service_wireless_uart, uuid_service_wireless_uart)
CHARACTERISTIC_UUID128(char_uart_stream,uuid_uart_stream,gGattCharPropWriteWithoutRsp_c|gGattCharPropRead_c))
VALUE_UUID128_VARLEN(value_uart_stream,uuid_uart_stream,gPermissionFlagWritable_c|gPermissionFlagReadable_c), gAttMaxWriteDataSize_d(gAttMaxMtu_c), 1, 0x00)

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

1,263 次查看
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Sihan, I hope you're doing well!

 

The gatt_db.h header file in the Wireless UART SDK example already has the service required to send and receive information with the UART, and does not need to be modified to receive information.

 

The reception of data through the UART is managed by the BleApp_ReceivedUartStream function in the wireless_uart.c source file.

 

Please let me know if you need any more information.

 

Best regards,

Sebastian

0 项奖励
回复