LilyGO / TTGO-LORA32

ESP32-TTGO-T3
326 stars 100 forks source link

LoRa.onReceive is not working #29

Open Nargott opened 4 years ago

Nargott commented 4 years ago

Hi. When I'm used LoRa.receive() in setup and LoRa.parsePacket() in the loop section, packets come as expected. But I want to use esp_light_sleep_start to save power. But I didn't receive any callbacks even without power savings. Of course, LoRa configured as LoRa.setPins(SS, RST, DI0), where #define DI0 26

Is anyone has a positive experience using LoRa.onReceive?

beaglehardware commented 3 years ago

I had the same problem, but finally figured out it was not a 3 band board as advertised. My board runs only on 433Mhz.

roseeng commented 2 years ago

I don't see how 433MHz vs 868MHz could affect whether or not the callbacks work. I have the same issue as @Nargott, receive works in the loo(), but not as a callback.

If I explicitly configure the DI0 pin as input using pinMode(DI0, INPUT), I get exactly one callback, but the the board craches an restarts. I tried this since I have seen other people mentioning it as a possible solution.