Ok, nearly there, have the curl working to get session ID and pass that to the next command, how do i structure the gsmctl part of the command to get the data (highlighted does not work). I have it working to get the RSSI as per the example but can't grasp how to format the last bit
SUCCESS.. The following works with -e for the other value
curl -d "{ \"jsonrpc\": \"2.0\", \"id\": 1, \"method\": \"call\", \"params\": [\"a74c8e07646f0da2bfddce35bf3de1f3\", \"file\", \"exec\", { \"command\":\"gsmctl\", \"params\": [\"-r\", \"wwan0\"] } ] }" http://192.168.1.1/ubus
Thanks folks