sigfox
Fork of Sigfox by
Revision 11:7e21590031dd, committed 2017-09-09
- Comitter:
- Raffaello
- Date:
- Sat Sep 09 17:21:03 2017 +0000
- Parent:
- 10:8ff45b9e136b
- Child:
- 12:43a4b8ba4635
- 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 |
--- 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];
}
