Known issue: long delays or blocking code kills the connection to the Cloud

Hi @bko @Raldus, the case where “lots and lots of little delays that add up to a big delay” is also handled well in the delay() logic so should not be a problem. The if ((elapsed_millis >= spark_loop_elapsed_millis) || (spark_loop_total_millis >= SPARK_LOOP_DELAY_MILLIS)){} handles both conditions: single long delays as well as many short delays adding to long delays.

2 Likes