Skip to content

Commit

Permalink
Now works with RadioLib 6.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ropg committed Jun 4, 2024
1 parent 9997bac commit 9f28135
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/LoRaWAN_TTN/LoRaWAN_TTN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void setup() {

node = persist.manage(&radio);

if (!node->isJoined()) {
if (!node->isActivated()) {
Serial.println("Could not join network. We'll try again later.");
goToSleep();
}
Expand All @@ -64,7 +64,7 @@ void setup() {

state = node->sendReceive(uplinkData, sizeof(uplinkData), 1, downlinkData, &lenDown);

if(state == RADIOLIB_ERR_NONE || state == RADIOLIB_ERR_RX_TIMEOUT) {
if(state == RADIOLIB_ERR_NONE || state == RADIOLIB_LORAWAN_NO_DOWNLINK) {
Serial.println("Message sent");
} else {
Serial.printf("sendReceive returned error %d, we'll try again later.\n", state);
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Heltec_ESP32_LoRa_v3
version=0.9.0
version=0.9.1
author=Rop Gonggrijp <[email protected]>
maintainer=Rop Gonggrijp <[email protected]>
sentence=Proper working library for "Heltec ESP32 LoRa v3" and "Heltec Wireless Stick v3" boards.
Expand Down

0 comments on commit 9f28135

Please sign in to comment.