Changes

Line 284: Line 284:     
The command itself is highlighted in orange.
 
The command itself is highlighted in orange.
 +
 +
====Setting Multiple Parameters====
 +
 +
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):
 +
 +
{
 +
    "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"
 +
            }
 +
        }
 +
    ]
 +
}