Good morning,
I am working with an Esp32s3 and I manage to use the Wifi in AP Mode (So that one can connect to it in order to
flash the firmware using OTA).
Everything is ok, when I start the Wifi in AP Mode, I can see the Access Point under Windows and I can connect to it
in order to flash the firmware.
Now, I would like the Wifi to be closed/stopped automatically if there is no connection to the access point.
I have created the functions that can be used in order to close/stop the Wifi but I don't know if it is possible
to detect connections to the access point.
Do you know if it is possible and how ?
Best regards,
Thomas TRUILHE
Esp32S3 : Question concerning Wifi AP connection
-
- Posts: 229
- Joined: Thu Jul 14, 2022 5:15 am
Re: Esp32S3 : Question concerning Wifi AP connection
If I understand correctly, you start softAP only at setup?
If so, I suggest to check after a while:
(?)
I'm not an expert, just starting to play around...
If so, I suggest to check after a while:
Code: Select all
if (WiFi.softAPgetStationNum() = 0) {
WiFi.softAPdisconnect();
}
I'm not an expert, just starting to play around...
-
- Posts: 1709
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Esp32S3 : Question concerning Wifi AP connection
You can use the WIFI_EVENT_AP_STACONNECTED and WIFI_EVENT_AP_STADISCONNECTED events.
Who is online
Users browsing this forum: Baidu [Spider] and 102 guests