ruche upmc
Fork of Sigfox by
Sigfox.cpp
- Committer:
- Raffaello
- Date:
- 2017-04-18
- Revision:
- 1:93450d8b2540
- Parent:
- 0:5e0ae613c18c
- Child:
- 2:d07e3b39ff74
File content as of revision 1:93450d8b2540:
#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"); } bool Sigfox::setPowerMode(uint8_t power) { _at->send("AT$P=%d", power); return _at->recv("OK"); } void Sigfox::getID() { _at->send("AT$I=10"); // TODO add return value } void Sigfox::getPAC() { _at->send("AT$I=11"); // TODO add return value }