ESP8266 SmartConfig
Arduino Code
you can simply call beginSmartConfig() like this
WiFi.beginSmartConfig();
while(1){
delay(1000);
if(WiFi.smartConfigDone()){
Serial.println("SmartConfig Success");
break;
}
}
or the easier way is use library that support smartConfig function such as
WiFiConnector Arduino Library: <a href="https://www.google.com/url?q=https://www.google.com/url?q%3Dhttps://github.com/cmmakerclub/WiFiConnector%26sa%3DD%26usg%3DAFQjCNFGgxcWLPjsY4lSiCgxndoXFa77jA&sa=D&usg=AFQjCNFNgNS3HH-PnT4FEUb-_P6Rj7CXVQ" target="_blank">https://github.com/cmmakerclub/WiFiConnector</a>