diff --git a/src/MKRWAN.h b/src/MKRWAN.h index cca65c2..8584c97 100644 --- a/src/MKRWAN.h +++ b/src/MKRWAN.h @@ -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);