Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Sigfox by
Diff: Sigfox.cpp
- Revision:
- 1:93450d8b2540
- Parent:
- 0:5e0ae613c18c
- Child:
- 2:d07e3b39ff74
--- a/Sigfox.cpp Tue Apr 18 13:49:20 2017 +0000
+++ b/Sigfox.cpp Tue Apr 18 15:05:57 2017 +0000
@@ -9,4 +9,19 @@
bool Sigfox::send(const char *data) {
_at->send("AT$SF=%s", data);
return _at->recv("OK");
+}
+
+bool Sigfox::setPowerMode(uint8_t power) {
+ _at->send("AT$P=%d", power);
+ return _at->recv("OK");
+}
+
+void Sigfox::getID() {
+ _at->send("AT$I=10");
+ // TODO add return value
+}
+
+void Sigfox::getPAC() {
+ _at->send("AT$I=11");
+ // TODO add return value
}
\ No newline at end of file
