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