Sigfox library with integration of ATParser

Sigfox.cpp

Committer:
Raffaello
Date:
2017-04-18
Revision:
0:5e0ae613c18c
Child:
1:93450d8b2540

File content as of revision 0:5e0ae613c18c:


#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");
}