ESP32 Cayenne.loop takes 1 second

Hi *

Does Cayenne.loop on ESP32 really take 1 second?

When I watch the millis before and after it’s quite exactly 1000. I’m concerned about the response time of other tasks in the main loop.

Best regards


you can make Cayenne.loop() to execute at a large interval between each loop using Cayenne.loop(10).

Thank you!
I assume the value 10 serves as example for seconds, right? In the meantime I worked around running Cayenne.loop() at 0.5Hz rate (once every second second). Would there be any difference to Cayenne.loop(2) ?
Happy New Year!

Happy new year @PeterPi

10 serves as times in millis that is 10,000 millis.

the loop will run every 2 seconds.

Confusing but thanks, I’ll just try.