Page 1 of 1

Server and clients

Posted: Fri Feb 23, 2018 1:57 pm
by ibrahemweb
hi guys , i have a project , i need implementing this project by use "raspberry" .

idea the project about sending command to many "raspberry" from main site "raspberry" to control like relays ...etc , and recivering data from clients to main "raspberry" , over using ethernet cable (TCP/IP OR UDP/IP) ,

how can using the web server (GUI interface ) (main site ) "raspberry" to sending the command , without conflict and receiver data live to web server and show it .
there is no problem with html css javaciript .....and php my sql
how can send/recive data from php to clients over Ethernet
.Image

Re: Server and clients

Posted: Fri Feb 23, 2018 3:12 pm
by topguy
Sounds like something that could use the MQTT protocol effectively. ( https://www.hivemq.com/blog/how-to-get- ... -with-mqtt )

Node.js could be a good choice of language for the clients.

A webpage can both send and receive messages via WebSockets if you have a websocket enabled MQTT broker.