I am looking to set up a basic UART CLI, I want to be able to write commands such as "scan ", "Connect 'MAC' " or "Set LED on" etc. I have been working off the lesson exercise for UART, and have set up a termination for the command "\r\n". the RX buffer is not resetting and so all the commands are merging together. My plan was to then search the receive buffer for the command i.e. "scan" and then act on that.
How can I clear the buffer, length and offset? i had set to 0 and "" but on next callback the values are back.
Am I maybe going in the wrong direction for this? i want to keep this quite simple.
My end goal is to setup a basic version of the ble_app_interactive.
Thanks for your help.
William