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

Dear support

I am using RUT955, and I am trying to do some remote configuration of the router by using the JSON-RPC approach.

Specifically I am trying to configure the service RS485/RS232 remotely. Basically the RS485 is configured as server mode over IP, and

I want to do is to add few ip-adr to the list of "allow_ip". So I'm wondering

if you can provide me the correct JSON-RPC command to do that?

I have tried out following JSON-RPC but it does not work at all.

{
     "jsonrpc":"2.0", "id":1, "method":"call", "params":
     [
         "5e4ba5fba7f7f07a915433588d4f676e", "uci", "add_list",
         {
             "config":"rs",
             "type":"ip_filter_rs485", values:
             {"allow_ip": "192.168.1.159"}
         }
     ]
 }

by
It works.

Thanks alot for your support

1 Answer

0 votes
by
Hi,

Please check details how to use uci via JSON correctly:

https://wiki.teltonika.lt/view/Monitoring_via_JSON-RPC#Setting_router_parameters