Skip to content

Is it possible to detect connected devices in Wifi AP mode? #1342

Closed Answered by phoddie
stc1988 asked this question in Q&A
Discussion options

You must be logged in to vote

The WiFi class callback on ESP32 provides two callbacks related to this:

  • "station_connect" for when a new connection to the AP is established (ESP-IDF WIFI_EVENT_AP_STACONNECTED message)
  • "station_disconnect" for when a connection to the AP is lost (ESP-IDF 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.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by stc1988
Comment options

You must be logged in to vote
1 reply
@phoddie
Comment options

Comment options

You must be logged in to vote
1 reply
@phoddie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants