Skip to content

Commit

Permalink
LoRaWAN_TTN example now works with RadioLib >= 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ropg committed Sep 30, 2024
1 parent 6ede596 commit be61f69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions examples/LoRaWAN_TTN/LoRaWAN_TTN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ void setup() {

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

if(state == RADIOLIB_ERR_NONE || state == RADIOLIB_LORAWAN_NO_DOWNLINK) {
Serial.println("Message sent");
if(state == RADIOLIB_ERR_NONE) {
Serial.println("Message sent, no downlink received.");
} else if (state > 0) {
Serial.println("Message sent, downlink received.");
} 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.1
version=0.9.2
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 be61f69

Please sign in to comment.