sigfox

Fork of Sigfox by Belkacem DAHMANI

Files at this revision

API Documentation at this revision

Comitter:
Raffaello
Date:
Thu May 18 17:32:00 2017 +0000
Parent:
3:279bed56f354
Child:
5:66e05787ad5c
Commit message:
Added some new commands. Minor fixes

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	Mon May 01 08:26:05 2017 +0000
+++ b/Sigfox.cpp	Thu May 18 17:32:00 2017 +0000
@@ -30,6 +30,11 @@
     }    
 }
 
+bool Sigfox::setKey(bool type) {
+    _at->send("ATS410=%d", type);
+    return _at->recv("OK");
+}
+
 bool Sigfox::setPower(uint8_t power) {
     _at->send("ATS302=%d", power);
     return _at->recv("OK");
--- a/Sigfox.h	Mon May 01 08:26:05 2017 +0000
+++ b/Sigfox.h	Thu May 18 17:32:00 2017 +0000
@@ -36,6 +36,11 @@
     bool ready();
     
     bool send(const char *data, char* response=NULL);
+    /**
+     * true = public
+     * false = private
+     */
+    bool setKey(bool type);
     
     bool setPower(uint8_t power=15);