how to set SmartConfig for xiao esp32s3, I’m not find any useful information in WiFi for both versions | Seeed Studio Wiki
Hi there,
and welcome here…
SO It works AOK,
You Compile and upload the (code stub) with arduino to the Xiao ESP32S3 ,
Then on the mobile device, download and install the APP (play store)
add your WiFi creds…
be patient it’s not FAST! , BAM Bobs you’re Uncle
serial output with a S3 connected to USB.
Waiting for SmartConfig.
.............................
SmartConfig received.
Waiting for WiFi
WiFi Connected.
IP Address: 192.168.1.187
HTH
GL PJ
Arduino code Stub…
#include "WiFi.h"
void setup() {
Serial.begin(115200);
//Init WiFi as Station, start SmartConfig
WiFi.mode(WIFI_AP_STA);
WiFi.beginSmartConfig();
//Wait for SmartConfig packet from mobile
Serial.println("Waiting for SmartConfig.");
while (!WiFi.smartConfigDone()) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("SmartConfig received.");
//Wait for WiFi to connect to AP
Serial.println("Waiting for WiFi");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("WiFi Connected.");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// put your main code here, to run repeatedly:
}
So the Idea is you add this code to your’s and Now you can configure WiFi on the fly.
PS. don’t forget to mark THIS POST as the Solution, so Others may find it.
1 Like
well, is there any IOS version?