System management

RPC.List

Return a list of RPC exported from by the device.

Argument

No argument.

Sys.GetInfo

Get the current (runtime) configuration of the system.

Argument

No argument.

Sys.Reboot

Reboot the device now.

Argument

No argument.

FS.List

List all files in filesystem.

Argument

No argument.

FS.Rename

Rename a file that is in filesystem.

FS.Remove

Delete file.

Argument

{
    "filename": "foo.txt"
}

FS.Put

Upload data as a file in device’s filesystem. If file already exist, data can be append or override existing file. Override file by default.

Hint

File to transfer has to be base64 encoded.

Argument

{
    "filename": "foo.txt",
    "append": false,
    "data": "<base 64 encoded data>"
}

FS.Get

Fetch a file from device’s filesystem.

Argument

{
    "filename": "foo.txt",
    "offset": 0,
    "len": 100
}

Where filename is the name of the file in filesystem. Argument offset and len are optional and used in case the file is large to fetch a file in multiples segments.

Return

{
    "data": "<data encoded in b64 >",
    "left": 0
}

Where data is the content of the file encoded in base64 and left is the number of bytes left in file.

FS.ListExt

Same as FS.List but also returns extra file info like file sizes.

Argument

No argument.