setWifiConnection.lua
[INDEX]

ABSTRACT

Modify a WIFI 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 WIFI interface.

Test value:

Object
(MUST)

The WIFI connection object name (Get it by listWifiConnection.lua - [field 'Object' of each connection item])

Test value:

Uuid
(MUST)

The WIFI connection Uuid (Get it by listWifiConnection.lua - [Field 'Uuid' of each connection item])

Test value:

AutoConnect
INTEGER

Auto connection option

1

If find this hotspot within the scope, it will connect automatically.

0

Need connect this manually (Refer to connectWifi.lua)

Test value:

Security
(MUST)

Connection security option. Select one of these:

none-none

Open (no password)

none-open

WEP 40/128 bits key (Open)

none-share

WEP 40/128 bits key(Share)

none-open-128

WEP 128 bits passphrase (Open)

none-share-128

WEP 128 bits passphrase (Share)

ieee8021x

IEEE 802.1X Dynamic WEP (Not support current)

wpa-psk

WPA/WPA2 (PSK)

wpa-none

WPA/WPA2 (PSK) for AdHoc

Test value:

Psk
(MUST)

Connection password

Test value:

DHCP
INTEGER (MUST)

1

Get IP addresses by DHCP

0

Manually set IP addresses

Test value:

Parameters group: Manual-IP

This group contains arguments of: IP, Mask, Gateway, Dns1 and Dns2. If 'DHCP' argument is 0, please provide arguments of this group:

Enable this group:

>   IP
[In parameter group: Manual-IP]

Manual specified IP address

Test value:

>   Mask
[In parameter group: Manual-IP]

Manual specified subnet mask

Test value:

>   Gateway
[In parameter group: Manual-IP]

Manual specified default gateway

Test value:

>   Dns1
[In parameter group: Manual-IP]

Specified DNS1 or leave empty

Test value:

>   Dns2
[In parameter group: Manual-IP]

Specified DNS2 or leave empty

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