I want to intercept some data in the RX (in section UART_RX_READY in uart_cb() as a command with arguments. And I do not want this data to be sent on the the BLE.
After I get the data that I want, what should I do with the buf, so the process continues getting new data from the UART RX?
Do I just k_free(buf)? Or something else?