Smart configuration example

Hello everyone, could someone help me with this question, in the example of thinger “ESP8266SmartConfig” how do I configure the Wi-Fi network and the password?

void getWiFi()              // From memory , Using Defaults, or using SmartConfig
{
  int retry = 0;
  WiFi.mode(WIFI_STA);      // configure WiFi in Station Mode
  wifi_station_set_hostname(HOST_NAME);
  wifi_station_set_auto_connect(true);
  delay(WIFI_REPEAT);
  Serial.println("Attempt to connect to WiFi network from EEPROM");
  WiFi.begin();
  delay(WIFI_REPEAT);
  while (WiFi.status() != WL_CONNECTED)
  {
    Serial.print(".");
    digitalWrite(STDLED, not digitalRead(STDLED));
    delay(WIFI_REPEAT) ;
    if (retry++ >= WIFI_MAXTRIES) break;
  }

  if (WiFi.status() != WL_CONNECTED)
  {
    Serial.println("\nConnection timeout expired! Start with default");
    retry = 0;
    WiFi.begin(WIFI_SSID, WIFI_PASS);
    delay(WIFI_REPEAT * 2 );
    while (WiFi.status() != WL_CONNECTED)
    {
      Serial.print(".");
      digitalWrite(STDLED, not digitalRead(STDLED));
      delay(WIFI_REPEAT);
      if (retry++ >= WIFI_MAXTRIES) break;
    }
  }
  if (WiFi.status() != WL_CONNECTED)
  {
    Serial.println("Connection timeout expired! Start SmartConfig…");
    retry = 0;
    WiFi.beginSmartConfig();
    digitalWrite(STDLED, false);
    while (WiFi.status() != WL_CONNECTED)
    {
      Serial.print(".");
      digitalWrite(STDLED, not digitalRead(STDLED));
      delay(WIFI_REPEAT * 4);
      if (retry++ >= WIFI_MAXTRIES) break;
      if (WiFi.smartConfigDone())
      {
        Serial.println("SmartConfig success!");
        break; // exit from loop
      }
    }
  }

  if (WiFi.status() != WL_CONNECTED)
  {
    Serial.println("Connection timeout expired! Running without Network");
    WiFi.mode(WIFI_OFF);
  } else {
    // show WiFi connection data
    Serial.println("Connection succeeded");
    //WiFi.printDiag(Serial);

    // show the IP address assigned to our device
    Serial.println(WiFi.localIP());
    digitalWrite(STDLED, true);
  }
} // End Void GetWiFi

Hello Hello rin 67630, I’m sorry, but I don’t understand how to change the WiFi credentials in the “ESP8266SmartConfig” example, should I configure a library?

Your problem seems solved.
My example is another WiFi starter using the SmartConfig library from the ESP to autoconfigure the WiFi credentials of an ESP Device using the smartphone App SmartConfig.

For now, I think I will use the example with web configuration. thank you!