Configure USB NET

1. API Description

This API is used to configure USB NET.

Request mode: POST [ip]/api/network/usb-config

Administrator Rights Logged-in
Yes Yes

2. Input Parameters

Name Required Type Description
iface Yes String The network card name, usb0
ipaddr Yes String IP address

3. Output Parameters

Name Type Description
status Int Status code
code String Status description

4. Example

Configuring USB NET.

Input Example
{
  "iface": "usb0",
  "ipaddr": "192.168.66.1"
}
Output Example
{
    "status": 0,
    "code": "Success"
}

5. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Status Definition Description
7 MW_STATUS_INVALID_ARG Missing required parameters
12 MW_STATUS_DEVICE_LOST The USB network card is missing

results matching ""

    No results matching ""

    results matching ""

      No results matching ""