       }   
     }
   }
-}
+  if (WiFi.status() != WL_CONNECTED) {
+    parseRGB("#000000");
+    setParsedRGB();
+    delay(100);
+  }
+}

  mqttClient.setServer(mqtt_server, 1883);
  mqttClient.setCallback(callback);
  mqttTryReconnect();
  registration();
}

unsigned int loopCounter = 1;

        Serial.println(subscriptions[i]);
      #endif
    }
    
  }
}

