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.
Revision 11:7e21590031dd, committed 2017-09-09
- Comitter:
- Raffaello
- Date:
- Sat Sep 09 17:21:03 2017 +0000
- Parent:
- 10:8ff45b9e136b
- Commit message:
- Fixed error lng ID and PAC
Changed in this revision
Sigfox.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 8ff45b9e136b -r 7e21590031dd Sigfox.cpp --- a/Sigfox.cpp Tue Aug 01 11:03:17 2017 +0000 +++ b/Sigfox.cpp Sat Sep 09 17:21:03 2017 +0000 @@ -57,7 +57,7 @@ char buff[8+2]; _at->send("AT$I=10"); _at->read(buff, 8+2); - memcpy(&ID[0],&buff[2],8-2); + memcpy(&ID[0],&buff[0],8); return &ID[0]; } @@ -65,7 +65,7 @@ char buff[16+2]; _at->send("AT$I=11"); _at->read(buff, 16+2); - memcpy(&PAC[0],&buff[2],16-2); + memcpy(&PAC[0],&buff[0],16); return &PAC[0]; }