i am working on project which requires to get commands from internet and change some device values. For example: on website i click the button which tell arduino to turn on the lamp. The problem is that i don't want that in arduino loop method it is looping all the time waiting/checking if do i have clicked that button or not. So is it possible to make that loop method do his own buisness, but when i press that button it call interupt function which turn on/off the light etc.?? I understand it is easy to do with hardware interupt - you physically push the button which one is connected to specified arduino external pin. But how to make similar task from the internet??
I hope you understand my idea and i will be thankful for your answers or given articles how to do such thing.