sigfox
Fork of Sigfox by
Diff: Sigfox.cpp
- Revision:
- 15:5cac9747f00f
- Parent:
- 14:e858a765590a
--- a/Sigfox.cpp Tue Feb 20 15:07:48 2018 +0000
+++ b/Sigfox.cpp Tue Feb 27 12:45:51 2018 +0000
@@ -31,7 +31,7 @@
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);
+ _at->send("AT$SF=%s", data);
// Wait response from sigfox after send
return _at->recv("OK");
@@ -43,6 +43,12 @@
}
+bool Sigfox::setCwEU(uint8_t mode ,uint8_t power) {
+ _at->send("AT$CW=868130000,%d,%d",mode,power);
+ return _at->recv("OK");
+}
+
+
bool Sigfox::setPower(uint8_t power) {
_at->send("ATS302=%d", power);
return _at->recv("OK");
