Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

126
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda