Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems
Dependents: mtsas mtsas mtsas mtsas
Revision 40:ecef43f87c7a, committed 2014-07-29
- Comitter:
- Vanger
- Date:
- Tue Jul 29 19:39:01 2014 +0000
- Parent:
- 39:629fc8475af1
- Parent:
- 38:b2088faa8bfd
- Child:
- 41:8b9b5098696f
- Commit message:
- Changed timeout for socket open under EasyIP.cpp. Removed AT+IFC command from EasyIP.cpp constructor
Changed in this revision
Cellular/EasyIP.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Cellular/Cellular.cpp Tue Jul 29 19:36:29 2014 +0000 +++ b/Cellular/Cellular.cpp Tue Jul 29 19:39:01 2014 +0000 @@ -269,10 +269,7 @@ return code; } string cmd = "AT+CMGS=\""; - //EasyIP radios do not include the + - if(type == MTSMC_H5_IP || type == MTSMC_EV3_IP || type == MTSMC_C2_IP) { - cmd.append("+"); - } + cmd.append("+"); cmd.append(phoneNumber); cmd.append("\",145"); for (int i = 0; i < 5; i++) {
--- a/Cellular/EasyIP.cpp Tue Jul 29 19:36:29 2014 +0000 +++ b/Cellular/EasyIP.cpp Tue Jul 29 19:39:01 2014 +0000 @@ -384,7 +384,7 @@ } //5) Open Socket sprintf(sOpenSocketCmd, "AT#SD=1,%d,%d,%s,%d,%d,0", typeSocket, port, address.c_str(),closeType , local_port); - std::string response = sendCommand(sOpenSocketCmd, 140000); + std::string response = sendCommand(sOpenSocketCmd, 60000); if(response.find("CONNECT") != std::string::npos) { host_address = address;