module.pdp.control
The module.pdp.control command is used to control the PDP (Packet Data Protocol) context. The module can be identified by thingKey, ESN, ICCID, IMEI, IMSI, MEID, or MSISDN. Only one of these identifying fields is required.
TR50 Request
{
"cmd": {
"command": "module.pdp.control",
"params": {
"thingKey": "mything",
"mode": "sms",
"id": 1,
"apn": "accesspointname",
"activate": true
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
thingKey | String | Yes* | Key of the thing |
thingId | String | Id of the thing | |
esn | String | Esn of the thing | |
iccid | String | Iccid of the thing | |
imei | String | Imei of the thing | |
imsi | String | Imsi of the thing | |
meid | String | Meid of the thing | |
msisdn | String | Msisdn of the thing | |
*One of the above Thing Identifier parameter is required. | |||
mode | String | The mode to send the command ('tr50' or 'sms'). Default is auto. | |
id | Integer | Yes | The PDP context ID to query. |
apn | String | Access point name. | |
activate | Boolean | Yes | If the PDP context should be active. |
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.