Your recommendation? Why in the serial monitor the phrase “CONNECTION OK” appears 2 times with an interval of 11 seconds, during which other program code cannot be executed?
It occurs at 11 sec interval but does not take 11 sec for the function to complete.
those. in these 11 seconds, can other program code be executed?
in these 11 sec intervals, yes. but once 11 sec is done and Cayenne.loop()
run then it cant.
is it possible to increase this connection check interval?
you can try this simple trick but not the best practise
if (millis() - lastMillis > 40000) {
Serial.println("loop");
Cayenne.loop();
lastMillis = millis();
}