Repository navigation
|
I am trying to use QR codes for Wi-Fi configuration by applying webConfigWifi application. My plan is adding processing for when a smartphone connects to the MCU in AP mode, but there is no way to detect connected devices. |
Answered by
phoddie
May 5, 2024
Replies: 3 comments 2 replies
|
The WiFi class callback on ESP32 provides two callbacks related to this:
I'm not sure about the details of integrating this into |
0 replies
Answer selected by
stc1988
|
Thank you for reply. This code works to monitor msg WiFi.accessPoint({
ssid: AP_NAME,
password: AP_PASSWORD,
});
let monitor = new WiFi(null, msg => {
trace(`${msg}\n`)
}) |
1 reply
|
This is short demo. After connect to access point, screen shows next QR code that open configuration URL. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The WiFi class callback on ESP32 provides two callbacks related to this:
WIFI_EVENT_AP_STACONNECTEDmessage)WIFI_EVENT_AP_STADISCONNECTEDmessage)I'm not sure about the details of integrating this into
webConfigWifibut these messages could be used to achieve the result you describe.