FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
+1 vote
588 views 0 comments
by
On a RUT950:

Is it possible to set the digital output on/off through MQTT? would be nice since i am already using the protocol in my current system.

2 Answers

0 votes
by anonymous

Hello.

Unfortunally for now the RUT955 is not able to set parameters via MQTT, just monitor them.

This link has the features each interface can do.

https://wiki.teltonika-networks.com/view/RUT950_Remote_Monitoring_and_Administration

In other way, there are these links to set up and configure the mosquitto broker and publisher.

Main MQTT page  -->  https://wiki.teltonika-networks.com/view/MQTT

Monitoring from linux with mosquitto client  -->  https://wiki.teltonika-networks.com/view/Monitoring_via_MQTT

Anything else please let us now.

Regards.

Best answer
+1 vote
by anonymous

I know you would probbaly found a way but I am leaving this comment for anyone in the future.

use the "MQTT gateway" under "Modbus" section, also set the Modbus slave to "on”, set the Modbus master on and add the Digital output status register 202 so that you can read its value, the MQTT allow you to send command to the device (you activated the device as modbus slave in Modbus slave option before), also activate the data to server option and set it to collect data from modbus. Now try to send this command " 0 65432 0 127.0.0.1 502 5 1 6 202 1" through the request topic you set in "MQTT gateway" you will receive OK message on the response topic you set in "MQTT gateway" you created. You can also receive the actual status of the pin (register 202) that you read through the "MODBUS master" section you created. And the "data to server" section will take the data from the "MODBUS master" and send it to the MQTT

here is some links to help do what I just said:

https://wiki.teltonika-networks.com/view/RUT955_Modbus

https://wiki.teltonika-networks.com/view/RUT955_Input/Output

https://wiki.teltonika-networks.com/view/Modbus_TCP_Master_MQTT_Gateway

I know it is a mess but it works really well.