sigfox

Fork of Sigfox by Belkacem DAHMANI

Files at this revision

API Documentation at this revision

Comitter:
Raffaello
Date:
Sat May 27 10:55:06 2017 +0000
Parent:
4:c77d5019b264
Child:
6:799a482a7024
Commit message:
Added store configuration

Changed in this revision

Sigfox.cpp Show annotated file Show diff for this revision Revisions of this file
Sigfox.h Show annotated file Show diff for this revision Revisions of this file
--- a/Sigfox.cpp	Thu May 18 17:32:00 2017 +0000
+++ b/Sigfox.cpp	Sat May 27 10:55:06 2017 +0000
@@ -45,6 +45,11 @@
     return _at->recv("OK");
 }
 
+bool Sigfox::saveConfig() {
+    _at->send("AT$WR");
+    return _at->recv("OK");
+}
+
 void Sigfox::wakeup(DigitalInOut sig_rst, float time) {
     // Wake up sigfox
     sig_rst.output();
--- a/Sigfox.h	Thu May 18 17:32:00 2017 +0000
+++ b/Sigfox.h	Sat May 27 10:55:06 2017 +0000
@@ -48,6 +48,8 @@
     
     void wakeup(DigitalInOut sig_rst, float time=0.2);
     
+    bool saveConfig();
+    
     char *getID();
     
     char *getPAC();