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
422 views 0 comments
by anonymous
Hi everyone. I've just started with teltonika devices, I have a RUT956. I would like to send via MQTT or otherwise address the list of all networked devices on the router. I'm trying this procedure: https://wiki.teltonika-networks.com/view/Monitoring_via_MQTT but I don't get any response about the broker. I also installed mqtt package and the broker is mosquitto.

1 Answer

0 votes
by anonymous

Hi,

It seems that you have MQTT publisher and MQTT gateway configured. If you are configuring the device for monitoring according to the wiki article that you have linked, you need to configure MQTT publisher (you have already configured it) and MQTT broker (not MQTT gateway like you have configured). If you are using some other broker, then make sure that you enter the correct information.

Then, you should be able to obtain the information via the Mosquitto using the commands provided in the Wiki article. For example, you subscribe via the following command (change according to your own settings):

  • mosquitto_sub -h 192.168.1.1 -p 1883 -u test -P test123 -t router/id

Now that the subscriber is listening, publish from another client via the following command:

  • mosquitto_pub -h 192.168.1.1 -p 1883 -u test -P test123 -t router/get -m id

With these commands, you should be able to obtain a serial number which you can then use to subscribe/publish and get the information about the router.

Kind Regards,

Andzej