Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

127
Views
response from server to all clients in multiple client and single server model

I have moxa E1212 product connected to a system and for communication I use modbus-tcp (jsmodbus package) and have multiple clients.
I need when a client sends a request to moxa (like turn on a LED), other clients be aware of that real time or server broadcast it's response to all clients.
How can I implement something like this.
currently I read status every 200 ms in a loop to notice if there is any changes:

    setInterval(function () {
        client.readCoils(start, count)
            .then(function (resp) {
                // console.log(resp)
                // socket.end()
            }).catch(function () {
            console.error(arguments)
            socket.end()
        })
    }, 200)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

That broadcast does not exist in Modbus protocol, the only way for all clients to know about the coil state is to periodically read it, which seems to be what you are already doing.

The MQTT protocol would be better for what you intend to do, but it seems that this device does not support it.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!