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:
- 0:5e0ae613c18c
- Child:
- 1:93450d8b2540
diff -r 000000000000 -r 5e0ae613c18c Sigfox.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Sigfox.cpp Tue Apr 18 13:49:20 2017 +0000
@@ -0,0 +1,12 @@
+
+#include "Sigfox.h"
+
+bool Sigfox::ready() {
+ _at->send("AT");
+ return _at->recv("OK");
+}
+
+bool Sigfox::send(const char *data) {
+ _at->send("AT$SF=%s", data);
+ return _at->recv("OK");
+}
\ No newline at end of file
