Changes

Line 289: Line 289:  
This next example describes how to set multiple parameters in a single config file with one command. Lets change the default configuration of the Ping Reboot function (ping_reboot config file):
 
This next example describes how to set multiple parameters in a single config file with one command. Lets change the default configuration of the Ping Reboot function (ping_reboot config file):
   −
{
+
curl -d "{\"jsonrpc\":\"2.0\", \"id\":1, \"method\":\"call\", \"params\":[\"558a9b03c940e52f373f8c02498952e3\", \"uci\", \"set\", {\"config\":\"ping_reboot\", \"match\":{\"enable\":\"0\", \"host\":\"8.8.8.8\", \"packet_size\":\"56\"}, \"values\":{\"enable\":\"1\", \"host\":\"8.8.4.4\", \"packet_size\":\"64\"} } ] }
    "jsonrpc":"2.0", "id":1, "method":"call", "params":  
  −
    [
  −
        "558a9b03c940e52f373f8c02498952e3", "uci", "set",
  −
        {
  −
            "config":"ping_reboot", "match":
  −
            {
  −
                "enable":"0",
  −
                "host":"8.8.8.8",
  −
                "packet_size":"56"
  −
            },
  −
            "values":
  −
            {
  −
                "enable":"1",
  −
                "host":"8.8.4.4",
  −
                "packet_size":"64"
  −
            }
  −
        }
  −
    ]
  −
}
 

Navigation menu