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:
7:1bdcfd6da2d0
Parent:
4:1142bdd07989
Child:
8:180feb3ebe62
--- a/GPRS/GPRS.cpp	Mon Apr 28 13:01:23 2014 +0000
+++ b/GPRS/GPRS.cpp	Tue May 06 03:50:21 2014 +0000
@@ -254,7 +254,8 @@
 
 int GPRS::new_socket()
 {
-    return socketID >= (MAX_SOCK_NUM-1)?(-1):(++socketID);
+    socketID = 0; //we only support one socket.
+    return socketID; 
 }
 
 uint16_t GPRS::new_port()