Description
I've put up a LoRa class (FLoRa) which has the readloop running in a thread. A callback function can be connected that is called with
the new data received. I added some more functions to LoRa as I found out that I need to increase the receive timeout to get my code working.
In the examples of FLoRa (see attached) there is a receiver (FLoRa_receiver) and a sender
(FLoRa_sender) sketch.
Every 2sec the sender sends a message and the receiver receives it.
It is working well in a setup with two ESP32 (RFM95W) for a quite decent time but after 30minutes or sometimes much more the receiver
doesn't get any messages while the sender still claims to send.
I've added a button to the sender to reset LoRa with LoRa.begin() etc.
Once the receiver stops receiving messages it is sufficient to
press the button at the sender to initiate the reset. The receiver
starts receiving again.
I've as well added a button at the receiver to send a message to the looping sender, which is
working fine for a lot of send actions but with pressing a few times the aforementioned
problem occurs earlier than before.
I wonder whether there is a status flag that can be read from the chip to see whether a reset is necessary.
[FLoRa_max.zip](https://github.com/sandeepmistry/arduino-LoRa/files/4161129/FLoRa_max.zip]
Thanks and regards
Max