This library works well on ESP32, and I've been using it for a couple of years to re-send data from low-power nodes to an MQTT broker. The only downside for me is that partially it relays on polling instead of being fully interrupt-driven.
I've seen a few discussions about adding an ISR callback, but it was never done. So here it is.
A few additional notes:
ISR method should have IRAM_ATTR
void IRAM_ATTR isrRadioMessage();
ISR should not block (it must be simple and fast)
radio.receiveDone() should be called after the radio initialization
This library works well on ESP32, and I've been using it for a couple of years to re-send data from low-power nodes to an MQTT broker. The only downside for me is that partially it relays on polling instead of being fully interrupt-driven.
I've seen a few discussions about adding an ISR callback, but it was never done. So here it is.
A few additional notes:
void IRAM_ATTR isrRadioMessage();
radio.receiveDone()
should be called after the radio initializationAn example that demonstrates the usage:
Let me know if any additional fixes are required to merge this PR. Thank you for the great library.