Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial
Dependents: ThinkSpeak_Test roam_v1 roam_v2 finalv3
Fork of GPRSInterface by
Revision 7:1bdcfd6da2d0, committed 2014-05-06
- Comitter:
- lawliet
- Date:
- Tue May 06 03:50:21 2014 +0000
- Parent:
- 6:464ccda1ebcc
- Child:
- 8:180feb3ebe62
- Commit message:
- fix socket++ error
Changed in this revision
| GPRS/GPRS.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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()
