So, I have a project that is using interrupts to catch pulses from a flowmeter (SF800). This all works really well, well maybe too well. The interrupts can come in long bursts as you might imagine which appear to prevent the main loop code from executing until there is a lull. Frequently, the core loses it’s connection to the cloud due to this and that causes a reset.
Is there a suggested way to yield during an interrupt to make sure things don’t go south? I expect most “events” to last 5-10s, so it shouldn’t be an issue, but I have seen it go pear shaped with 5s bursts.
BTW, the code I am using is:
attachInterrupt(0, meterInterrupt, FALLING);