Changes

Line 70: Line 70:  
The test highlighted in red is your Session ID, and highlighted in orange are the command and the parameter. In this example we're using a '''gsmctl -q''' command that returns the router's RSSI value:
 
The test highlighted in red is your Session ID, and highlighted in orange are the command and the parameter. In this example we're using a '''gsmctl -q''' command that returns the router's RSSI value:
   −
[[File:Configuration examples json-rpc firefox poster get gsmctl q v1.png]]
+
[[File:Configuration examples json-rpc firefox poster get gsmctl q v2.png]]
    
Look for '''stdout'''; what follows after is the direct response to our query: ''{"jsonrpc":"2.0","id":1,"result":[0,{"code":0,"stdout":"<span style="color:green">'''-59'''</span>\n"}]}''. This tells us that the router's current signal strength is <span style="color:green">'''-59 dBm'''</span>.
 
Look for '''stdout'''; what follows after is the direct response to our query: ''{"jsonrpc":"2.0","id":1,"result":[0,{"code":0,"stdout":"<span style="color:green">'''-59'''</span>\n"}]}''. This tells us that the router's current signal strength is <span style="color:green">'''-59 dBm'''</span>.
Line 92: Line 92:  
Again the command and the parameter are highlighted in orange. In this case the '''cat''' command is used to view the contents of the  '''/etc/config/network''' file. The Response is:
 
Again the command and the parameter are highlighted in orange. In this case the '''cat''' command is used to view the contents of the  '''/etc/config/network''' file. The Response is:
   −
 
+
[[File:Configuration examples json-rpc firefox poster get cat network v1.png]]
[[Image:Configuration examples json-rpc firefox poster get cat network.PNG]]
      
===Setting router parameters===
 
===Setting router parameters===

Navigation menu