a library to use GPRS like ethernet or wifi, which makes it possible to connect to the internet with your GPRS module

Dependencies:   BufferedSerial

Dependents:   ThinkSpeak_Test roam_v1 roam_v2 finalv3

Fork of GPRSInterface by wei zou

Revision:
4:1142bdd07989
Parent:
3:acf2ea413e72
Child:
9:38800611a613
--- a/Socket/TCPSocketConnection.cpp	Wed Feb 26 09:12:46 2014 +0000
+++ b/Socket/TCPSocketConnection.cpp	Thu Feb 27 07:25:20 2014 +0000
@@ -81,7 +81,7 @@
     }
 #endif
     int size = gprs->wait_readable(_sock_fd, DEFAULT_TIMEOUT);
-    return gprs->recv(_sock_fd, data, size);
+    return gprs->recv(_sock_fd, data, size>length?length:size);
 }
 
 int TCPSocketConnection::receive_all(char* data, int length)