setFailsafeAddress.lua
[INDEX]

ABSTRACT

Set failsafe address

About 'failsafe' address:

The Ethernet IP address configuration may give you trouble like:

(1) Forgot the manual set IP address

(2) Enabled DHCP but can't obtain IP address

(3) DHCP works, but never know the address it got

To solve above problems, you can configure a 'failsafe'(easy remember) address for Ethernet. Once you can't access the device because above problems, you can use the 'failback' address.

ARGUMENTS

HTTP Arguments submit: GET; POST

Test this API over HTTP - (URL):

DeviceObject

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

Test value:

Enable
INTEGER

Failsafe function enabling. 0=Disabled, 1=Enabled.

Test value:

IP
STRING

Failsafe IP address

Test value:

Netmask
STRING

Subnet mask( E.g. 255.255.255.0 ) ยท

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.

}

OTHER NOTES

Device HTTP API, v1.0