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

Possibly add "headerless" option #90

Closed jerryneedell closed 9 months ago

jerryneedell commented 9 months ago

I'm curios what people think of adding an option to strip out the "RadioHead" header and just allow the user to send/receive a raw payload. This would allow the library to be more compatible with other libraries used on Arduino boards , for example https://github.com/sandeepmistry/arduino-LoRa

I think it will be a fairly simple change, just adding an argument to the initialization. Of course, if enabled, no addressing or "reliable datagram" modes would be available. Also the transmitter and receiver would have to be configured the same.

Any comments?

If there is a consensus to do this, I'll be happy to implement it. This will likely add a few byes of code to the library and may create issues for the feather_m0_rfm9x build.

As I think about this, another option is to create a new rfm9x-lite version that just sends/receives a raw packet. No header, no addressing , no reliable datagram. It would not be compatible with RadioHead, but it would work with arduino-lora. It would also be a lot smaller!

jerryneedell commented 9 months ago

This is actually a duplicate of #38. Closing here and will follow-up there with any future discussion. Clearly this is not a "burning" issue ...