-
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. |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
-
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`)
}) |
Beta Was this translation helpful? Give feedback.
-
This is short demo. After connect to access point, screen shows next QR code that open configuration URL. |
Beta Was this translation helpful? Give feedback.
The WiFi class callback on ESP32 provides two callbacks related to this:
WIFI_EVENT_AP_STACONNECTED
message)WIFI_EVENT_AP_STADISCONNECTED
message)I'm not sure about the details of integrating this into
webConfigWifi
but these messages could be used to achieve the result you describe.