 #define CLIENT_ID     "1"
 char mqtt_server[120]="mqtt.broker.net";
 char mqtt_port_config[5]="1883";
+char mqtt_user[120]="";
+char mqtt_password[120]="";
 int mqtt_port = 1883;
 const char* topicCmd    = "/esp/1/cmd";
 const char* topicStatus = "/esp/1/status";

    ESP.reset();
  }

  // Loop until we're reconnected to MQTT server
  while (!client.connected()) {
    Serial.print("Attempting MQTT connection...");
    // Attempt to connect
    if (client.connect(clientId)) {
      Serial.print("connected with id : ");
      Serial.println(clientId);
      // Once connected, publish an announcement...

  //add all your parameters here
  wifiManager.addParameter(&custom_mqtt_server);
  wifiManager.addParameter(&custom_mqtt_port);
  wifiManager.addParameter(&custom_mqtt_user);
  wifiManager.addParameter(&custom_mqtt_password);

  //reset settings - for testing
  //wifiManager.resetSettings();
