hello to everyone,
I'm sorry but i don't know if this is the right section of the forum (if not please , admins, forgive me).
I'm not so expert in programming issues so I hope in your help..
i need to read and write from a single webpage values to different arduino yun
the idea is to have 7 nodes (yun boards) connected to my home wifi that turn on or off rleays and read some values from analog pins.
1) 192.168.1.77 2) 192.168.1.78 3) 192.168.1.79 4) 18.104.22.168 5) and so on
I can add also a supernode if needed to store the main html page (could be 192.168.1.70);
the questions are....
1) its possible with Ajax to update status from different nodes using a single function???
in the example found into the book of Marco Maganin "alla scoperta di arduino yun" the line was
server = "/arduino/stato/99"; richiesta = new XMLHttpRequest(); richiesta.onreadystatechange = updateasincronoStato; richiesta.open("GET", server, true); richiesta.send(null);
if i change the address with
running the page onto another arduino yun (192.168.0.70) it can work properly?
if yes I could try to modify the function to accept an ip address as parameter and repeat it with a cicle for-next changing the address;
2)It will be possible to send multiple command (changing accordly the function) to different Nodes?
3) what could be the best and simple way to obtain this result?
thanks in advance to everyone