Skip to content

Commit 9f28135

Browse files
committed
Now works with RadioLib 6.6.0
1 parent 9997bac commit 9f28135

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/LoRaWAN_TTN/LoRaWAN_TTN.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void setup() {
4545

4646
node = persist.manage(&radio);
4747

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

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

67-
if(state == RADIOLIB_ERR_NONE || state == RADIOLIB_ERR_RX_TIMEOUT) {
67+
if(state == RADIOLIB_ERR_NONE || state == RADIOLIB_LORAWAN_NO_DOWNLINK) {
6868
Serial.println("Message sent");
6969
} else {
7070
Serial.printf("sendReceive returned error %d, we'll try again later.\n", state);

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Heltec_ESP32_LoRa_v3
2-
version=0.9.0
2+
version=0.9.1
33
author=Rop Gonggrijp <rop@gonggri.jp>
44
maintainer=Rop Gonggrijp <rop@gonggri.jp>
55
sentence=Proper working library for "Heltec ESP32 LoRa v3" and "Heltec Wireless Stick v3" boards.

0 commit comments

Comments
 (0)