Skip to content

Commit be61f69

Browse files
committed
LoRaWAN_TTN example now works with RadioLib >= 7.0.0
1 parent 6ede596 commit be61f69

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/LoRaWAN_TTN/LoRaWAN_TTN.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ void setup() {
6464

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

67-
if(state == RADIOLIB_ERR_NONE || state == RADIOLIB_LORAWAN_NO_DOWNLINK) {
68-
Serial.println("Message sent");
67+
if(state == RADIOLIB_ERR_NONE) {
68+
Serial.println("Message sent, no downlink received.");
69+
} else if (state > 0) {
70+
Serial.println("Message sent, downlink received.");
6971
} else {
7072
Serial.printf("sendReceive returned error %d, we'll try again later.\n", state);
7173
}

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.1
2+
version=0.9.2
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)