
Sorry for the late response.
Illukkari from your posts and comments, you're right on the point of where I would like to get at. Thank you very much for the code. I will try the code and come back with some comments.
Jantje that's another neat approach I've read about. However, my idea is to automate my house as much as possible, so it won't be so easy to make the serial connection.
draythomp My idea is that the server and client(s) con communicate with each other, being the internet server the one who controls the arduino wifi clients. As Illukkari mentioned the best approach is using websockets. From what I've read polling causes an increase of the use of bandwidth which could affect other users, and it's not in real time so, it is still an option but not the best. As for hijacking the thread, don't worry, it is a constructive discussion, from were we all learn. I am new to Arduino and HTML programming so it has been very interesting for me.
Cheers!
