AnsweredAssumed Answered

How to modify gatt_bd.h for UART read service

Question asked by sihan chen on Apr 1, 2020
Latest reply on Apr 6, 2020 by Sebastián Del Río

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)

Outcomes