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:
9:38800611a613
Parent:
3:acf2ea413e72
--- a/Socket/Socket.cpp	Tue May 06 03:56:03 2014 +0000
+++ b/Socket/Socket.cpp	Mon Mar 09 07:25:05 2015 +0000
@@ -35,6 +35,9 @@
 }
 
 int Socket::close() {
+    if (_sock_fd < 0) {
+        return - 1;
+    }
     return (gprs->close(_sock_fd)) ? 0 : -1;
 }