Echo server
Let’s merge transmission and reception into a single program and write an echo server. An echoserver sends back to the client the same text it sent. For this application, the microcontrollerwill be the server and you and your laptop will be the client.
This should be straightforward to implement. (hint: do it byte by byte)