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

Updated interrupt based blocking callback to loop based non-blocking one #621

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sheikhmishar
Copy link

As I noticed from the source code, the onTxDone and onReceive callback is executed in an ISR. According to Arduino and ESP documentation, ISR should run nothing more than simple variable manipulation. Also, delay will not work. I have updated the code to sort out these limitations. Please accept this pull request if you think this could be helpful in time critical application

@geoffcliddell
Copy link

This seems like a great addition! I've been using the anonymous function idea used here too and the issue is mentioned here too: #127 would it help this to get merged if instead of being implemented in the examples, the anonymous function were added as a default argument to the Lora.onReceive() function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants