Skip to content

Commit 44c9265

Browse files
committed
Delete functions from old fw version
1 parent 543d937 commit 44c9265

File tree

1 file changed

+1
-61
lines changed

1 file changed

+1
-61
lines changed

src/MKRWAN.h

Lines changed: 1 addition & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -472,10 +472,6 @@ class LoRaModem : public Stream
472472
}
473473

474474

475-
void setBaud(unsigned long baud) {
476-
sendAT(GF("+UART="), baud);
477-
}
478-
479475
bool autoBaud(unsigned long timeout = 10000L) {
480476
for (unsigned long start = millis(); millis() - start < timeout; ) {
481477
sendAT(GF(""));
@@ -540,11 +536,6 @@ class LoRaModem : public Stream
540536
modemSend(&dummy, 1, true);
541537
}
542538

543-
bool factoryDefault() {
544-
sendAT(GF("+FACNEW")); // Factory
545-
return waitResponse() == 1;
546-
}
547-
548539
/*
549540
* Power functions
550541
*/
@@ -605,28 +596,13 @@ class LoRaModem : public Stream
605596
}
606597

607598
bool publicNetwork(bool publicNetwork) {
608-
sendAT(GF("+NWK="), publicNetwork);
609-
if (waitResponse() != 1) {
610-
return false;
611-
}
612-
return true;
613-
}
614-
615-
bool sleep(bool on = true) {
616-
sendAT(GF("+SLEEP="), on);
599+
sendAT(GF("+PNM="), publicNetwork);
617600
if (waitResponse() != 1) {
618601
return false;
619602
}
620603
return true;
621604
}
622605

623-
bool format(bool hexMode) {
624-
sendAT(GF("+DFORMAT="), hexMode);
625-
if (waitResponse() != 1) {
626-
return false;
627-
}
628-
return true;
629-
}
630606

631607
/*
632608
DataRate Modulation SF BW bit/s
@@ -691,30 +667,6 @@ class LoRaModem : public Stream
691667
return getValue("APPKEY");
692668
}
693669

694-
bool setFCU(uint16_t fcu) {
695-
sendAT(GF("+FCU="), fcu);
696-
if (waitResponse() != 1) {
697-
return false;
698-
}
699-
return true;
700-
}
701-
702-
int32_t getFCU() {
703-
return getValue("FCU").toInt();
704-
}
705-
706-
bool setFCD(uint16_t fcd) {
707-
sendAT(GF("+FCD="), fcd);
708-
if (waitResponse() != 1) {
709-
return false;
710-
}
711-
return true;
712-
}
713-
714-
int32_t getFCD() {
715-
return getValue("FCD").toInt();
716-
}
717-
718670

719671
private:
720672

@@ -839,18 +791,6 @@ class LoRaModem : public Stream
839791
}
840792
}
841793

842-
size_t modemGetMaxSize() {
843-
if (isArduinoFW()) {
844-
return 64;
845-
}
846-
sendAT(GF("+MSIZE?"));
847-
if (waitResponse(2000L) != 1) {
848-
return 0;
849-
}
850-
streamSkipUntil('=');
851-
return stream.readStringUntil('\r').toInt();
852-
}
853-
854794
bool getJoinStatus() {
855795
String njs;
856796
sendAT(GF("+NJS=?"));

0 commit comments

Comments
 (0)