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.
0 votes
295 views 2 comments
by anonymous
I really would like to be able to control the digital output of RUT240 by MQTT. It seems that the digital input is readable by MQTT, so I don't understand why the output status and control isn't available.

1 Answer

0 votes
by anonymous

Hi, MQTT protocol is only able to monitor Teltonika devices. In this link you can change which protocols the device support and what can we do with each one.

https://wiki.teltonika-networks.com/view/RUT240_Remote_Monitoring_%26_Administration

Instead of, you can use JSON-RPC and requests to set all the parameters in the router.

https://wiki.teltonika-networks.com/view/RUT955_Monitoring_via_JSON-RPC_windows

https://wiki.teltonika-networks.com/view/RUT955_Monitoring_via_JSON-RPC_linux

Also, you can take a look to this link, it shown how to monitor via MQTT.

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

by

Thanks, but Json-RPC is not suitable in this case. The ISP is using NAT and rfc1918 addresses, so it's not easy to reach the device. I could setup a VPN connection, but that seems like a lot of work, and feels a bit unreliable. 

I am already using the RUT 240 MQTT bridge to exchange IOT-data with a remote location, and that works really well. If the router were able to subscribe to a topic that controlled the I/O, it would be the perfect IOT router. As the router already subscribes to the "router/get" topic, it seems to me that it would be an easy enough feature to implement. As a workaround, I am currently using the mosquitto-client opkg in combination with a shell script to achieve this.  

by anonymous
Hello,

Unfortunately, for now RUT240 only can monitor the parameters described in this link. For total control of the device, we suggest you to use another protocol.

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

Any further doubt please let me know.

Regards.