Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Radios per node #73

Open
wizard97 opened this issue Apr 14, 2017 · 1 comment
Open

Multiple Radios per node #73

wizard97 opened this issue Apr 14, 2017 · 1 comment

Comments

@wizard97
Copy link

I think a relatively simple, and nice addition would be the ability for this library to handle multiple instances with multiple radios.

I think the changes would be relatively simple, currently there is just a public static RFM69 *self pointer, that gets called by the ISR. All you would have to do is create a simple linked list of RFM69 objects, add an additional attribute to the class that is a RFM69 *next pointer. Whenever the ISR fires, in the isr routine just traverse through the list and digitalRead each RFM69's isr pin to figure out which device triggered the interrupt, then call the associated handler.

@LowPowerLab
Copy link
Owner

Thanks for your thoughts, this was discussed before.
In most cases there is 1 radio per module and I don't personally have a need for more.
You're welcome to submit a PR if you'd like but any changes require extensive testing.

@LowPowerLab LowPowerLab changed the title Multiple Radios Multiple Radios per node Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants