getFailsafeAddress.lua
[INDEX]

ABSTRACT

Get failsafe address settings

About 'failsafe' address:

The Ethernet IP address configuration may give you trouble like:

(1) Forgot the manual set IP address

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

(3) DHCP works, but never know what the address is

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:

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.

"Data": {
/*OBJECT*/

"Enable":
"STRING"

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

"IP":
"STRING"

Failsafe IP address

"Netmask":
"STRING"

Subnet mask (E.g. 255.255.255.0)

}
}

OTHER NOTES

Device HTTP API, v1.0