Cellular.ready() from an ISR?


I’m reading the docs here.
This is what I see:

Now, I have this firmware that checks for Cellular.ready() from an ISR.
What are the things that can go wrong with this so I can better asses the impact or the refactoring that needs to be done?

Thank you!

I would avoid calling Cellular.isReady() from an ISR.

It looks like it might work currently because it only checks flags in the interface class. However, there is no guarantee that there won’t be something more complex in the future, or a something that would require a mutex which would make it no longer ISR-safe.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.