btidey wrote:I suspect the question was about asynchronous / synchronous operation of software elements rather than serial communication.
Yes, exactly this, thank you.
Say for example I have an asynchronous web server with a button on it.
The button should trigger a routine on the ESP.
Meanwhile the programme is running a loop.
Does the server interrupt the loop in order to run its routine?
If not, then how does it work?