How to modify gatt_bd.h for UART read service

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

How to modify gatt_bd.h for UART read service

740 Views
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)

Labels (2)
0 Kudos
1 Reply

654 Views
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 Kudos