Ethernet PHP control - I want to stay in a loop and check for a new string

afremont:
If I understand you, you wish to have an animation (something like a screensaver) running until a network request comes in. I take it that you "poll" something to see if the request has come in. You then want to process the single request of adjusting some LEDs I think. You then want to go back to the animation. Is that correct?

If so, then you insert your poll of the network controller somewhere inside the animation process like inside a loop or procedure that frequently executes. When you detect something, just handle it from within the animation or float some kind of signal up to the main level loop() to handle it.

This is pretty much what I'm trying to do, sorry for being rubbish at explaining myself :~ lol I will try the approach you mentioned, many thanks :slight_smile: