Skip to content

Commit

Permalink
Merge pull request #18 from aschr/master
Browse files Browse the repository at this point in the history
Update MKRWAN.h
  • Loading branch information
facchinm authored May 4, 2018
2 parents 1dfb0c9 + ad10bc5 commit 45a30c3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/MKRWAN.h
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,34 @@ class LoRaModem : public Stream
return true;
}

/*
DataRate Modulation SF BW bit/s
0 LoRa 12 125 250
1 LoRa 11 125 440
2 LoRa 10 125 980
3 LoRa 9 125 1'760
4 LoRa 8 125 3'125
5 LoRa 7 125 5'470
6 LoRa 7 250 11'000
*/

bool dataRate(uint8_t dr) {
sendAT(GF("+DR="), dr);
if (waitResponse() != 1) {
return false;
}
return true;
}

bool setADR(bool adr) {
sendAT(GF("+ADR="), adr);
if (waitResponse() != 1) {
return false;
}
return true;
}


private:

bool isArduinoFW() {
Expand Down

0 comments on commit 45a30c3

Please sign in to comment.