So just for kicks I had another play with testing uptime when using a 1 second delay.
I striped out all the print comments and just used this…
int UpTime = 0;
void setup() {
Spark.variable("UpTime", &UpTime, INT);
}
void loop() {
UpTime = int((millis() / 1000) / 60);
delay(1000);
}
So it still consistently crashes still at fairly random intervals, interestingly enough the average for 10 runs on this code was down to 9.9 minutes where the previous version had a 10 run average of 17.2 minutes.
So that’s enough of that, it looks like delay’s crash cores, especially when my other core has been running far more complex code doing TCP, MQTT, debouncing button’s etc for day’s without crashing.