Unsigned_Arduino:
The function sendSerial() sends the data in the provided parameters, and it waits for a comfirmination before continuing.
What happens if the confirmation does not happen?
Don't use a blocking WHILE. Just listen for input in the regular non-blocking way (as in Serial Input Basics) and maybe add a timeout so that the sender can deal with a failed confirmation - perhaps by re-sending the message.
...R