7951 questions

9404 answers

15104 comments

12979 members

0 votes
62 views 1 comments
by
I want to use RUT240 devices to be a router for my IOT device, but my IOT device needs to have some awareness of whether its on wired or cell.  I'm hoping to be able to use JSON-RPC for that purpose and have my device periodically ask the router which network its using for default route for WAN.

Is there an easy way to do this?

1 Answer

0 votes
by

Hello,

Thank you for contacting.

Have you tried reading the following ?

https://wiki.teltonika-networks.com/view/RUT240_Monitoring_via_JSON-RPC_linux#Enabling_JSON-RPC

Also you can send you router's parameters in json format to http/mqtt server using modbus slave and TCP master functionality . Teltonika device can be slave and master at the same time. 

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

For the list of parameters you can see here:

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

I hope it helps.

Regards,

Ahmed

Best answer
by
Thanks... I'm going to go with JSON-RPC.  not going to do modbus, but am going to simply initiate at "ip route show" and look and see what has the default route at metric 0.