Sigfox library with integration of ATParser
Diff: Sigfox.cpp
- Revision:
- 11:7e21590031dd
- Parent:
- 10:8ff45b9e136b
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]; }