setWWanConnection.lua
[INDEX]

ABSTRACT

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

Test value:

Object
(MUST)

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

Test value:

Uuid
(MUST)

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

Test value:

Type
STRING (MUST)

Specify WWan network type:

gsm

Wireless network type is GSM/HSPA/LTE

cdma

Wireless network type is CDMA

Test value:

AutoConnect
(MUST)

Auto connection option:

1

Means it auto connect this when network is available

0

Need manually connect it (Refer to connectWWan.lua)

Test value:

Parameters group: GSM

For 'Type' as gsm, it needs to specified below parameters:

Enable this group:

>   GSM_APN
[In parameter group: GSM] (MUST)

Network APN

Test value:

>   GSM_Number
[In parameter group: GSM] (MUST)

Dial number

Test value:

>   GSM_User
[In parameter group: GSM]

Username

Test value:

>   GSM_Password
[In parameter group: GSM]

Password [If need not change password, let it be string '~dont~change']

Test value:

>   GSM_Pin
[In parameter group: GSM]

SIM PIN

Test value:

Parameters group: CDMA

For Type as cdma, it needs to specified below parameters:

Enable this group:

>   CDMA_Number
[In parameter group: CDMA] (MUST)

Dial number

Test value:

>   CDMA_User
[In parameter group: CDMA]

Username

Test value:

>   CDMA_Password
[In parameter group: CDMA]

Password [If need not change password, let it be string '~dont~change']

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