8298 questions

9759 answers

15542 comments

13863 members

0 votes
741 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