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
270 views 1 comments
by anonymous
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 anonymous

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 anonymous
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.