Posts: 1
Joined: Fri Feb 23, 2018 12:38 pm

Server and clients

Fri Feb 23, 2018 1:57 pm

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

User avatar
Posts: 5687
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Server and clients

Fri Feb 23, 2018 3:12 pm

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.

Return to “Beginners”