module.pdp.query
The module.pdp.query command is used to query 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.query",
"params": {
"thingKey": "mything",
"mode": "tr50",
"id": 1
}
}
}
Request Parameters
Name | Type | Required | Description |
---|---|---|---|
Thing Identifier Parameters | Identifies the thing to which the module call is to be directed. See Thing Identifier Parameters table below for supported parameters. | ||
mode | String | The mode to send the command ('tr50' or 'sms'). | |
id | Integer | Yes | The PDP context ID to query. |
Thing Identifier Parameters
Name | Type | Description |
---|---|---|
thingKey | String | 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 |
TR50 Response
If the command is sent successfully a success message is returned and other variable information. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true,
"params": {
"apn": "apn value",
"id": 1,
"ip": "127.0.0.1",
"type": "pdp context"
}
}
}
Response Parameters
Name | Type | Description |
---|---|---|
apn | String | Access point name. |
id | Integer | The PDP contect ID. |
ip | String | The IP address. |
type | String | The Type of context. |