getWifiDetail.lua
[INDEX]

ABSTRACT

Get current/specified WIFI detail status

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); if not specified, then 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

"State":
"STRING"

Current Wifi connection status is one of followings:

disabled

Disabled

off

Not connected

connecting

Connecting in progress

connected

Connected

"Capabilities":
"STRING"

Wireless capabilities, identified its 2.4G/5.8G supporting capability

"ConnectedSSID":
"STRING"

Connected SSID name. If not connected, it is empty

"SignalStrength":
INTEGER

Current connected AP signal strength (0-100). If not connected, it is 0

"ConnectingSpeed":
INTEGER

Current connected AP speed (Mbps). If not connected, it is 0

"IP":
"STRING"

Currently obtained IP address

"Prefix":
INTEGER

Subnet mask in prefix (E.g. 24 is 255.255.255.0, 16 is 255.255.0.0)

"Gateway":
"STRING"

Default gateway

}
}

OTHER NOTES

KILOVIEW Device HTTP API, v1.0