ruche upmc
Fork of Sigfox by
Revision 12:43a4b8ba4635, committed 2018-01-17
- Comitter:
- dahmani_belkacem
- Date:
- Wed Jan 17 14:30:08 2018 +0000
- Parent:
- 11:7e21590031dd
- Commit message:
- Sigfox ruche
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 |
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) {
diff -r 7e21590031dd -r 43a4b8ba4635 Sigfox.h --- a/Sigfox.h Sat Sep 09 17:21:03 2017 +0000 +++ b/Sigfox.h Wed Jan 17 14:30:08 2018 +0000 @@ -42,7 +42,7 @@ bool ready(); - bool send(const char *data, char* response=NULL); + bool send(const char *data); /** * true = public * false = private