setWebServicePort.lua
[INDEX]

ABSTRACT

Configure the Web(HTTP) service port

ARGUMENTS

HTTP Arguments submit: GET; POST

Test this API over HTTP - (URL):

ServicePort
INTEGER

Service port (default is 80)

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

NOTE:

The HTTP API is also using the same service port, please note that the service port changing will also affect HTTP API. It will not take effect until you reboot the device. Refer to reboot.lua.

OTHER NOTES

Device HTTP API, v1.0