Changes

Line 96: Line 96:  
===Setting router parameters===
 
===Setting router parameters===
 
----
 
----
The '''uci set''' command is used to set router parameters. For more general information about the usage and syntax of UCI commands, check out our '''[[UCI command usage]]''' guide.  
+
The '''uci set''' command is used to set router parameters. We'll not go into detail on UCI commands in this article, but you can check out our '''[[UCI command usage]]''' guide for detailed examples.  
    
====uci set====
 
====uci set====
 
----
 
----
 
As an example, lets try to change the router's WiFi SSID. The command to do so looks like this:
 
As an example, lets try to change the router's WiFi SSID. The command to do so looks like this:
 +
 
  {
 
  {
 
     "jsonrpc":"2.0", "id":1, "method":"call", "params":
 
     "jsonrpc":"2.0", "id":1, "method":"call", "params":
Line 106: Line 107:  
         "9704f676709d9dedc98d7718c4e3e7d2", "uci", "set",
 
         "9704f676709d9dedc98d7718c4e3e7d2", "uci", "set",
 
         {
 
         {
             "config":"<span style=color:orange>wireless</span>",
+
             "config":"<span style=color:orange>'''wireless'''</span>",
             "type":"<span style=color:orange>wifi-iface</span>",
+
             "type":"<span style=color:orange>'''wifi-iface'''</span>",
 
             "match":
 
             "match":
 
             {
 
             {
                 "ssid": "<span style=color:red>Teltonika_Router</span>"
+
                 "ssid": "<span style=color:red>'''Teltonika_Router'''</span>"
 
             },
 
             },
 
             "values":
 
             "values":
 
             {
 
             {
                 "ssid":"<span style=color:green>9999</span>"
+
                 "ssid":"<span style=color:green>'''9999'''</span>"
 
             }
 
             }
 
         }
 
         }
 
     ]
 
     ]
 
  }
 
  }
 +
 
The sections highlighted in orange describes the config file's name and section (in this case, '''wireless''' config and '''wifi-iface''' section). Highlighted in red is the option of the config section that you wish to change (in this case, the router's '''SSID'''). Finally, highlighted in green is the value that will 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:
 
The sections highlighted in orange describes the config file's name and section (in this case, '''wireless''' config and '''wifi-iface''' section). Highlighted in red is the option of the config section that you wish to change (in this case, the router's '''SSID'''). Finally, highlighted in green is the value that will 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: