 
   WiFiManagerParameter custom_mqtt_topic("mqtt-topic", "Topic", settings.mqttTopic, 33);
   wifiManager.addParameter(&custom_mqtt_topic);
-#endif
 
   //set config save notify callback
   wifiManager.setSaveConfigCallback(saveConfigCallback);

    settings = defaults;
  }

  MQTTOutbound mob(&mqttClient,settings.mqttTopic);
  mqttOutbound = &mob;

  MQTTInbound inbound(&mqttClient,settings.mqttClientID,settings.mqttTopic, &appCore);
  mqttInbound = &inbound;

  WiFiManagerParameter custom_boot_state("boot-state", "on/off on boot", settings.bootState, 33);
  wifiManager.addParameter(&custom_boot_state);


  Serial.println(settings.bootState);

#ifdef INCLUDE_MQTT_SUPPORT
  Serial.println(settings.mqttHostname);
  Serial.println(settings.mqttPort);
  Serial.println(settings.mqttClientID);

  if (MQTT_ENABLED) {
    mqttClient.set_server(settings.mqttHostname, atoi(settings.mqttPort));
  }

  //OTA
  ArduinoOTA.onStart([]() {
