From 8bc4778143e2e88e56941439cfebf69b47af9c40 Mon Sep 17 00:00:00 2001 From: KalleJ66 Date: Sun, 28 Dec 2025 20:40:54 +0100 Subject: [PATCH] Add line to make program receive more than one message I observed that the program worked but only received one message. To enable the program to continuously receive messages add the event setting again. --- libraries/LoRa/examples/LoRaBasic/LoRaReceiver/LoRaReceiver.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/LoRa/examples/LoRaBasic/LoRaReceiver/LoRaReceiver.ino b/libraries/LoRa/examples/LoRaBasic/LoRaReceiver/LoRaReceiver.ino index c5d7b35..85b856c 100644 --- a/libraries/LoRa/examples/LoRaBasic/LoRaReceiver/LoRaReceiver.ino +++ b/libraries/LoRa/examples/LoRaBasic/LoRaReceiver/LoRaReceiver.ino @@ -80,6 +80,7 @@ void loop() lora_idle = false; Serial.println("into RX mode"); Radio.Rx(0); + RadioEvents.RxDone = OnRxDone; // Swt the event handler again to prepare for next receive } } @@ -94,3 +95,4 @@ void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ) Serial.printf("\r\nreceived packet \"%s\" with rssi %d , length %d\r\n",rxpacket,rssi,rxSize); lora_idle = true; } +