Changes

Line 86: Line 86:  
Now that you have obtained a Session ID, you can issue commands to the router. Lets start with commands that return information about the router. For example, this is a command that returns the router's '''[[RSSI]]'''(signal strength) value:
 
Now that you have obtained a Session ID, you can issue commands to the router. Lets start with commands that return information about the router. For example, this is a command that returns the router's '''[[RSSI]]'''(signal strength) value:
   −
  {
  −
      "jsonrpc":"2.0", "id":1, "method":"call", "params":
  −
      [
  −
          "<span style=color:red>bde01a2da4a6f4a515bb9466f90bc58a</span>", "file", "exec",
  −
  {
  −
              "command":"<span style=color:orange>gsmctl</span>",
  −
              "params":
  −
              [
  −
                      "<span style=color:orange>-q</span>"
  −
              ]
  −
  }
  −
      ]
  −
  }
   
   {
 
   {
 
       "jsonrpc": "2.0", "id": 1, "method": "call", "params":  
 
       "jsonrpc": "2.0", "id": 1, "method": "call", "params":  
Line 104: Line 91:  
           "a74c8e07646f0da2bfddce35bf3de1f3", "file", "exec",
 
           "a74c8e07646f0da2bfddce35bf3de1f3", "file", "exec",
 
           {
 
           {
               "command":"<span style="color:orange">cat</span>",
+
               "command":"<span style="color:orange">gsmctl</span>",
 
               "params":
 
               "params":
 
               [
 
               [
                   "<span style="color:orange">/etc/config/network</span>"
+
                   "<span style="color:orange">-q</span>"
 
               ]
 
               ]
 
           }
 
           }
 
       ]
 
       ]
 
   }
 
   }
 +
 
The section highlighted in red is your Session ID, and the sections highlighted in orange are the command and the parameter. In this example we're using a '''gsmctl -q''' SSH command that returns the router's '''[[RSSI]]''' value:
 
The section highlighted in red is your Session ID, and the sections highlighted in orange are the command and the parameter. In this example we're using a '''gsmctl -q''' SSH command that returns the router's '''[[RSSI]]''' value:
  

Navigation menu