module.exec
The module.exec command is used to execute an AT command against the module. This command will only work if the module supports remote AT commands. 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.exec",
"params": {
"thingKey": "mything",
"input": "at+cgmm",
"timeout": 30,
"mode": "tr50"
}
}
}
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 parameters is required to identify the thing. | |||
input |
String | Yes |
The AT command to send. |
timeout |
Integer |
Time to wait for response from the AT command. Default is 0 which means do not wait for a response. |
|
mode |
String | Yes |
The mode to send the command (tr50 or sms or lwm2m). Default is auto |
TR50 Response
If the command is sent successfully a success message is returned with other variable information. Otherwise, an error and error message will be returned.