Changes

Line 134: Line 134:  
====UCI set====
 
====UCI set====
   −
'''{"jsonrpc":"2.0","id":1,"method":"call","params":[ "9704f676709d9dedc98d7718c4e3e7d2", "uci", "set",{ "config":"<span style=color:orange">wireless</span>","type":"<span style=color:orange">wifi-iface</span>","match": { "ssid": "<span style=color:red">Teltonika_Router</span>" } ,"values":{"ssid":"<span style=color:green">9999</span>"} }]}'''
+
{
 
+
    "jsonrpc":"2.0", "id":1, "method":"call", "params":
The sections highlighted in orange describe the config files name and section (in this case, '''wireless''' config and '''wifi-iface''' section). Highlighted in red is the exact part of the config file that you wish to change (in this case, the router's '''SSID'''). Finally, highlighted in green is the value that is to replace the old value (in this case, change the router's SSID to '''9999'''). If the issued command was a success, you should see a Response like this:
+
    [
 +
        "9704f676709d9dedc98d7718c4e3e7d2", "uci", "set",
 +
        {
 +
            "config":"<span style=color:orange>wireless</span>",
 +
            "type":"<span style=color:orange">wifi-iface</span>",
 +
            "match":
 +
            {
 +
                "ssid": "<span style=color:red">Teltonika_Router</span>"
 +
            },
 +
            "values":
 +
            {
 +
                "ssid":"<span style=color:green">9999</span>"
 +
            }
 +
        }
 +
    ]
 +
}
 +
The sections highlighted in orange describes the config files name and section (in this case, '''wireless''' config and '''wifi-iface''' section). Highlighted in red is the exact part of the config file that you wish to change (in this case, the router's '''SSID'''). Finally, highlighted in green is the value that is to replace the old value (in this case, change the router's SSID to '''9999'''). If the issued command was a success, you should see a Response like this:
     

Navigation menu