I know we can’t/shouldn’t block Bluetooth communication and that there’s a way to track the radio status via:
But is it possible to force the communication and have it reset the timer so I can get a guaranteed section of time where my code won’t be interrupted? For example if my timing sensitive code took longer than one period I could do something like:
//timing sensitive code
//remainder of timing sensitive code
Also how often does this interruption happen and how long does it last when there’s no incoming/outgoing data? I tried to time it via the notification callback and it appears to be roughly every 30ms with the radio on for about 1.4-1.7ms. I did this measurement in software via micros() so that likely impacts the accuracy of my results. I thought I read in another thread that the system interrupt was every 100ms; I doubt my measurement is off by that much.