 
   WiFi.begin(WLAN_SSID, WLAN_PASS);
   if (WiFi.status() != WL_CONNECTED) {
-    delay(300);
+    delay(500);
     Serial.print(F("."));
   }
   Serial.println();

  Adafruit_MQTT_Subscribe *subscription;
  while ((subscription = mqtt.readSubscription(10000))) {

    if (strcmp((char *)onoffsw.lastread, "{\"On\":1}") == 0) {
      Serial.println(F("On"));
      i = 0;
      while (i < brightness) {

        delay(4);
      }
    }
    else if (strcmp((char *)onoffsw.lastread, "{\"On\":0}") == 0 && led_on) {
      led_on = false;
      Serial.println(F("Off"));
      while (i > 10) {
        analogWrite(LED, i);
