API
Update the cellular network selection
Available in 8.0.1 or later
Input Parameters
Type | Notation | Mandatory | Description | |
connId | Number | <conn_id> | require | Specify which WAN connection ID is wanted to change the carrier selection |
simId | Number | {1,2} | optional | Specify which SIM is wanted to change the carrier selection |
selectedCarrier | Object | <Carrier_Obj> | require | The carrier which is wanted to select |
<Carrier_Obj>
Type | Notation | Mandatory | Description | |
mcc | String | 3 digits <string> | require | Mobile Country Code |
mnc | String | 2-3 digits <string> | require | Mobile Network Code |
pcs | Number | [ 0, 1 ] | require | – |
name | String | <string> | optional | Name of the carrier |
cURL Example
curl -b cookies.txt -H "Content-Type: application/json" -X POST -d '{"connId":4,"selectedCarrier"{"mcc":"345","mnc":"23","pcs":0}}'http://192.168.1.1/api/cmd.carrier.select
{ "stat": "ok", }