 #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";


          strcpy(mqtt_server, json["mqtt_server"]);
          strcpy(mqtt_port_config, json["mqtt_port"]);

        } else {
          Serial.println("failed to load json config");

    ESP.reset();
  }

  int cpt=10;

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