Sigfox library with integration of ATParser
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