Simple detection for LE910-NA1 modules
Fork of MTS-Cellular by
Diff: Cellular/EasyIP.cpp
- Revision:
- 71:8e8152d955d1
- Parent:
- 70:c0c621f88330
- Child:
- 73:bba8669d36f7
--- a/Cellular/EasyIP.cpp Tue Nov 11 19:03:43 2014 +0000 +++ b/Cellular/EasyIP.cpp Tue Feb 03 16:53:44 2015 +0000 @@ -46,6 +46,11 @@ if(sendBasicCommand("AT+IFC=2,2", 2000) != MTS_SUCCESS) { logWarning("Failed to enable serial flow control"); } + // Shorten data sending timeout from 5s to 100ms + // Some servers won't handle a timeout that long + if (sendBasicCommand("AT#SCFG=1,1,300,90,600,1", 2000) != MTS_SUCCESS) { + logWarning("Failed to reconfigure socket timeout parameters"); + } return true; }