I have a server raspberry pi (3b). It has a lot of things running on it including a web server. I have some Perl scripts on the server providing a UI to the settings on remote hardware
The remote hardware is a range of other things - Raspberry Pi, ESP32 and ESP8266 which periodically poll a Perl script on the pi webserver to get information they need to do their thing.
That periodic polling is a bit rubbish - but was very easy to implement in an evening and has worked up to now.
What I want to do now is to synchronise the activity a bit better. When configuration changes are made on the UI I'd prefer to push out the change to the all the appropriate remote hardware so that they have this change at pretty much the same time.
I wondered about UDP broadcast, but that's something I've never tried. They all need the same information...so it sounds tempting
I wondered whether the remote hardware could be in webserver mode and each be sent the same information as a query string. The server could find the IP addresses of the connected hardware from the DNS screen of the router (or I could assign static addresses).
I wondered about tcp socket connection, but while I have a little experience in this on the server Pi (setting up as a stats server for a remote internet game server), I'm out of my depth there.
Hmmm - many ways to skin this cat but I don't know what's simplest and easiest to achieve.
What's the best way to go about this? Any advice gratefully accepted