adafruit / Adafruit_CircuitPython_RFM9x

CircuitPython module for the RFM95/6/7/8 LoRa wireless 433/915mhz packet radios.
MIT License
68 stars 45 forks source link

Support interrupts instead of timeouts #29

Closed mh00h closed 5 years ago

mh00h commented 5 years ago

It is difficult to use this library with bidirectional communication. read_lora_data(timeout=5s) loops are currently required to check if there is new data to transmit. If interrupts could be supported, we wouldn't need to stop listening for data ever except when there is data to transmit. I think this is even referenced in the code; perhaps now would be a better time for adafruit to consider it?

ladyada commented 5 years ago

correct, we do not support interrupts in circuitpython! you can check out this thread for more info - closing this issue https://github.com/adafruit/circuitpython/issues/1380