Rename LoRaWAN example

This commit is contained in:
lewisxhe 2024-07-02 15:59:16 +08:00
commit 3a6acadeef
8 changed files with 5 additions and 5 deletions

2
.gitignore vendored
View file

@ -9,4 +9,4 @@ test
.travis.yml
script
build
LilyGoLoRaBoard

View file

@ -56,7 +56,7 @@
│ └── UBlox_Recovery # Only support Ublox GNSS Module
├── LoRaWAN # LoRaWAN examples
│ ├── LMIC_Library_OTTA
│ └── RadioLib_ABP
│ └── RadioLib_OTAA
├── OLED
│ ├── SH1106FontUsage
│ ├── SH1106GraphicsTest

View file

@ -57,7 +57,7 @@
│ └── UBlox_Recovery # Only support Ublox GNSS Module
├── LoRaWAN # LoRaWAN examples
│ ├── LMIC_Library_OTTA
│ └── RadioLib_ABP
│ └── RadioLib_OTAA
├── OLED
│ ├── SH1106FontUsage
│ ├── SH1106GraphicsTest

View file

@ -192,10 +192,10 @@ void setup()
node.beginOTAA(joinEUI, devEUI, nwkKey, appKey);
state = node.activateOTAA();
debug(state < RADIOLIB_ERR_NONE, F("Join failed"), state, false);
if (state == RADIOLIB_ERR_NONE) {
if (state == RADIOLIB_ERR_NONE || state == RADIOLIB_LORAWAN_NEW_SESSION) {
break;
}
delay(3000);
delay(10000);
Serial.print("Retry ");
}