connectEthernet.lua
[INDEX]

ABSTRACT

Connect/reconnect Ethernet connection

ARGUMENTS

HTTP Arguments submit: POST

Test this API over HTTP - (URL):

DeviceObject

Optional. if specified, then it is ObjectID of network interface (Refer to getNetInterface.lua); otherwise, it is the default Ethernet interface.

Test value:

RETURNS

Return a JSON style result. The JSON format is:

{
/*OBJECT*/

"Result":
NUMBER

200 means OK, other error code meanings are similar to HTTP Response.

"Status":
"STRING"

Status message. Responsing result status of API executive, if there errors, it will describe reasons.

}

NOTES

After call setEthernet.lua, the changed network arguments will not be brought to effect until you reboot the device, or call this API to reconnect the connection.

OTHER NOTES

Device HTTP API, v1.0