I'v got the following JSON request to retrieve the serial number of the connected device.
http://192.168.1.1/ubus
{
"jsonrpc": "2.0", "id": 1, "method": "call", "params":
[
"91beb9b2a4b0b525ef7f673d1ff5bf53", "file", "exec",
{
"command":"mnf_info", "params":["-s"]
}
]
}
This works great on a RUT955 (version RUT9_R_00.07.02.4), but I receive a result 6 error for the RUT300 (version RUT30X_R_00.07.00).
{
"jsonrpc": "2.0",
"id": 1,
"result": [
6
]
}
Thanks in advance!