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
352 views 0 comments
by anonymous
Hi guys,

Does anyone know if the MQTT client on the RUT routers makes use of the last-will-and-testament feature to set RSSI/Uptime to 0 upon disconnect? I.e. is there any way to know other than seeing data hasn't been updated in a while if the device has gone offline?

Also, does anyone happen to know how often readings are uploaded? (I know some will be on change only) Trying to get a feel for bandwidth consumed.

Many thanks

2 Answers

0 votes
by anonymous

Hello,

Regarding MQTT Last will and testament currently consulting with RnD. Moving to your other question which is: how often readings are uploaded, when using MQTT on our devices, router does not send data, you as user need to "ask" router to provide certain data, so when you "ask" router certain data you get the data from that point, so we can say the data is always updated.

Regarding MQTT on our devices, it is for devices monitoring, and you can get these parameters which are mentioned here: https://wiki.teltonika-networks.com/view/Monitoring_via_MQTT

If you want to get more information via MQTT from the router, then what you can try and to is:

1. Enable device to work as Modbus TCP Slave;

2. Configure Modbus TCP Master, so that router would collect certain data from itself: https://wiki.teltonika-networks.com/view/Monitoring_via_Modbus;

3. Configure MQTT Gateway, and from other side of MQTT you can send request to router via MQTT to get routers data via Modbus

To get Modbus data from Modbus TCP slave by using MQTT you need to use following messages, example for getting devices uptime:

  • 0 65432 0 192.168.1.247 560 5 2 3 2 2

0 - it should be by default always

65432 - it should be by default always

0 - 0 means IPv4, 1 means IPv6, 2 means hostname

192.168.1.247 - IP address of Modbus TCP Slave

560 - Port number on which Modbus TCP slave is listening

5 - timeout

2 - slave ID

3 - Modbus function (3 - read holding registers, 6 - write to a single holding register, 16 - write to multiple holding registers)

2 - Register number/address

2 - Number of Registers

0 votes
by anonymous
Hello,

Regarding MQTT LWT, this would require firmware changes. To start making firmware changes this would require us to make RES (research), for this please contact your Teltonika sales manager.