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:
- 12:43a4b8ba4635
- Parent:
- 11:7e21590031dd
- Child:
- 13:9e1c2ea4742b
diff -r 7e21590031dd -r 43a4b8ba4635 Sigfox.cpp
--- a/Sigfox.cpp Sat Sep 09 17:21:03 2017 +0000
+++ b/Sigfox.cpp Wed Jan 17 14:30:08 2018 +0000
@@ -6,7 +6,7 @@
return _at->recv("OK");
}
-bool Sigfox::send(const char *data, char* response) {
+/*bool Sigfox::send(const char *data, char* response) {
// If require a response add plus in message
if(response != NULL) {
// Add request response data
@@ -21,6 +21,18 @@
_at->send("AT$SF=%s", data);
return _at->recv("OK");
}
+}*/
+
+
+bool Sigfox::send(const char *data) {
+ // If require a response add plus in message
+ // Add request response data
+ _at->send("AT$SF=%s,1", data);
+ // Wait response from sigfox after send
+
+
+
+
}
bool Sigfox::setKey(bool type) {
