Sigfox library with integration of ATParser

Files at this revision

API Documentation at this revision

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];
 }