works through pushing box to log data to google spreadsheet
Dependencies: MBed_Adafruit-GPS-Library SDFileSystem mbed
Fork of GPR_Interface by
Diff: GPRS/GPRS.cpp
- Revision:
- 7:1bdcfd6da2d0
- Parent:
- 4:1142bdd07989
- Child:
- 8:180feb3ebe62
diff -r 464ccda1ebcc -r 1bdcfd6da2d0 GPRS/GPRS.cpp --- 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()