setOnvif.lua
[INDEX]

ABSTRACT

Configure Onvif parameters

ARGUMENTS

HTTP Arguments submit: GET; POST

Test this API over HTTP - (URL):

Enable
INTEGER

Onvif Enabling:

0

Disabled

1

Enabled

Test value:

ServicePort
INTEGER

Onvif HTTP service port (default is 8080)

Test value:

Discoverable
INTEGER

Onvif Discoverable:

0

Disable discovery

1

Enable discovery

Test value:

Location
STRING

Onvif location information.

NOTE:The 'Location' in Onvif is different from the location in getLocation.lua / setLocation.lua. You need specifythe 'Location' option for Onvif, it's like "country/america".

Test value:

DeviceName
STRING

Onvif device name. This is same as the field 'FRIENDLY_NAME' get by deviceInfo.lua.

Test value:

AuthRequirement

Onvif authentication requirement:

0

Not required

1

Require authentication

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