listWifiConnection.lua
[INDEX]

ABSTRACT

List all saved(remembered) WIFI connections

ARGUMENTS

HTTP Arguments submit: GET; 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:

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*/

"Device":
"STRING"

Wifi device name(e.g. wlan0)

"Object":
"STRING"

Wifi object name

"CONNECTION_list": [
/*ARRAY*/

Each one is a saved(remembered) connection, content as followings:

{
/*OBJECT*/

"Title":
"STRING"

Connection title

"Security":
"STRING"

Connection security:

open

Open

wep

WEP

dynamic-wep

Dynamic WEP(IEEE 802.1x)

adhoc-psk

PSK of AdHoc

wpa-psk

WPA/WPA2-PSK

wpa-eap

WPA-EAP

unknown

Unknown

"IsCurrent":
INTEGER

0|1, Whether the connection is currently in use

"AddressResolve":
"STRING"

IP addresses resolve:

dhcp

DHCP

manual

Manually

"Object":
"STRING"

Connection object name:

Pay attention of this Object, you must provide it for changing/connecting/disconnecting/deleting connection. The object name is like: /org/freedesktop/NetworkManager/Connections/3

"Uuid":
"STRING"

The UUID of this connection. You must provide it for changing connection.

}
]
}
}

OTHER NOTES

Device HTTP API, v1.0