 #endif
 
     Serial.println(settings.bootState);
-    Serial.println(settings.blynkToken);
-    Serial.println(settings.blynkServer);
-    Serial.println(settings.blynkPort);
 
     EEPROM.begin(512);
     EEPROM.put(0, settings);
     EEPROM.end();
   }
-
-#ifdef INCLUDE_BLYNK_SUPPORT
-  //config blynk
-  if (strlen(settings.blynkToken) == 0) {
-    BLYNK_ENABLED = false;
-  }
-  if (BLYNK_ENABLED) {
-    Blynk.config(settings.blynkToken, settings.blynkServer, atoi(settings.blynkPort));
-  }
-#endif
 
 
 #ifdef INCLUDE_MQTT_SUPPORT


    strcpy(settings.bootState, custom_boot_state.getValue());

#ifdef INCLUDE_BLYNK_SUPPORT
    strcpy(settings.blynkToken, custom_blynk_token.getValue());
    strcpy(settings.blynkServer, custom_blynk_server.getValue());
    strcpy(settings.blynkPort, custom_blynk_port.getValue());
#endif

#ifdef INCLUDE_MQTT_SUPPORT
    strcpy(settings.mqttHostname, custom_mqtt_hostname.getValue());
    strcpy(settings.mqttPort, custom_mqtt_port.getValue());

    digitalWrite(SONOFF_LED, (state + 1) % 2); // led is active low
  }

  //MQTT
  updateMQTT(channel);

