Particle doesn't connect to cloud after restarting

Just a few hints.
You don’t seem to use the SparkTime library, so just remove that (BTW I’m not sure what the benefit of this lib is over the native RTC Time features).
When using Blynk you should not have a delay(1000) slow down the Blynk tasks. Rather use a non-blocking approach like this

void loop() {
  static uint32_t msSoftDelay = 0;
  // full speed actions here
  Blynk.run();
  if (millis() - msSoftDelay < 1000) return;
  msSoftDelay = millis();
  // soft-delayed actions here 
  ...
}

But to pinpoint the cause of your issues, you may want to find out if Blynk is contributing to it or not and hence just comment all Blynk stuff and see if the issue persists or not.

And try to use the more elaborate pin names D0, D1, … instead of these anonymous pin numbers :wink:

2 Likes