getWWanDetail.lua
[INDEX]

ABSTRACT

Get current/specified WWan 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 WWan interface.

Test value:

_LANG

Optional. The language of 'StateReason' returns. Default is english.

cn

Chinese

en

English

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"

WWan device name (e.g. ppp0)

"Object":
"STRING"

WWan Object name

"State":
"STRING"

Current WWan connecting status is one of followings:

disabled

Disabled

off

Not connected

connecting

Connecting in progress

connected

Connected

error

With error

"StateReason":
"STRING"

When WWan is in a state of "disabled/off/connecting/error", reason that return to this status (String, its language can be decided by _LANG argument)

"StateReasonCode":
INTEGER

StateReason's code

"Capabilities":
"STRING"

WWan capabilities, it may be either one or combined of CDMA/EVDO, GSM/UMTS/HSPA, LTE (separated by ,)

"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

Device HTTP API, v1.0