Changes

Line 72: Line 72:  
[[File:Configuration examples json-rpc firefox poster get gsmctl q v1.png]]
 
[[File:Configuration examples json-rpc firefox poster get gsmctl q v1.png]]
   −
Look for '''stdout'''; what follows after is the response to the 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>.
    
You can issue many SSH commands in a similar manner. For example, if you wish to check the ''network'' config file, the SSH command to do so would be '''cat /etc/config/network''', which, translated to JSON-RPC, would be:
 
You can issue many SSH commands in a similar manner. For example, if you wish to check the ''network'' config file, the SSH command to do so would be '''cat /etc/config/network''', which, translated to JSON-RPC, would be: