Mqtt and endNode

I am trying to pull data from endNode (4 4-20mA AI) using a Mega Modem.

When I send a request to pull data from endNode, through tcp, mega modem replies on tcp, as well as publishes the same data on the mqtt topic. This to me indicates that they are compatible.

What I need help with is, sending the request through mqtt. I would appreciate if someone could share the syntax for the request to be sent to mega modem.

Hi,

You will need to publish a message to the MQTT Topic the Mega Modem is subscribed to containing a JSON object with the key sendCommand. This sendCommand key is the full DigiMesh API frame that needs to be sent to the endNode device. For example:

{“sendCommand”:[7E,00,16,10,00,00,13,A2,00,41,91,6C,9A,FF,FE,C0,00,AA,05,35,07,01,04,00,F0,C5]}

1 Like

The API Calculator can also help you generate command frames:

1 Like

Thank you, that did it.

1 Like