Skip to content

Commit

Permalink
Added getClass()
Browse files Browse the repository at this point in the history
Return the active Class
  • Loading branch information
stocrene authored Dec 21, 2021
1 parent c69ed78 commit ab37e59
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/MKRWAN.h
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,16 @@ class LoRaModem : public Stream
}
return true;
}

String getClass() {
String class_name = "";
sendAT(GF("+CLASS?"));
if (waitResponse("+OK=") == 1) {
class_name = stream.readStringUntil('\r');
}
return class_name;
}


bool configureBand(_lora_band band) {
sendAT(GF("+BAND="), band);
Expand Down

0 comments on commit ab37e59

Please sign in to comment.