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>
</div> <div jsname="WJz9Hc" style="display:none">ESP8266 SmartConfig
Codice Arduino
si può semplicemente chiamare beginSmartConfig () come questo
WiFi.beginSmartConfig ();
while (1) {
ritardo (1000);
if (WiFi.smartConfigDone ()) {
Serial.println ("SmartConfig successo");
interruzione;
}
}
o il modo più semplice è l'uso della libreria che supporta la funzione smartConfig come
WiFiConnector Arduino Biblioteca: <a href="https://www.google.com/url?q=https://github.com/cmmakerclub/WiFiConnector&sa=D&usg=AFQjCNFGgxcWLPjsY4lSiCgxndoXFa77jA" target="_blank">https://github.com/cmmakerclub/WiFiConnector</a></div> <div class="show-more-end">