I have a code snippet like this put in the loop().
auto startTime = millis();
auto duration = (millis() - startTime);
Normally duration would be in range ~ 1000 ms - 2000 ms. But occasionally it can reach 12000+ ms!!!
from the serial log, there seems to be no system event happening, no disconnection, just a normal one. And my publication rate is just 1 event/15 s.
Anyone can explain how publish can take this much time? And worse this is a blocking call.