Any ideas how to forceably remove a connected wifi station ?
Thanks
Remove a connected station
Re: Remove a connected station
The following code is not fully tested.
static void stop_wifi(){
esp_wifi_disconnect();
esp_wifi_stop();
esp_wifi_deinit();
}
static void stop_wifi(){
esp_wifi_disconnect();
esp_wifi_stop();
esp_wifi_deinit();
}
Re: Remove a connected station
Thanks, but isnt that to disconnect the esp32 from an access point, not disconnect a station connected to the access point? I want to keep the wifi up on the esp32, just disconnect one of the connected stations
Re: Remove a connected station
My application is a webRadio. It connects to an AP. I wanted to stop/remote WiFi completely which I think it is better to start fresh. I don't quite understand your applications and your definition of the term station.
Re: Remove a connected station
A station is a device that connects to the esp32 access point on wifi.
Basically theres an issue with the esp32 that if a station connects to it when the wifi is coming up an IP is not assigned and left as 0.0.0.0, if theres 1 second delay and then connect, an ip is assigned.
I wanted to disconnect any station which hasnt been assigned a valid ip, so it will reconnect and be assigned a proper IP.
Just a way around the issue.....
Any other ideas would be appreciated or how to fix the issue !
Thanks
Basically theres an issue with the esp32 that if a station connects to it when the wifi is coming up an IP is not assigned and left as 0.0.0.0, if theres 1 second delay and then connect, an ip is assigned.
I wanted to disconnect any station which hasnt been assigned a valid ip, so it will reconnect and be assigned a proper IP.
Just a way around the issue.....
Any other ideas would be appreciated or how to fix the issue !
Thanks
Re: Remove a connected station
The logic I used for my application is reverse the process. If you have an event handler for each connection, then you should able to reverse the process disconnecting it.
Re: Remove a connected station
Thank you for the reply, not sure what you mean by reversing the process, thought the event handler notified us of the wifi events?
How do I reverse this and disconnect the station ?
Thanks
How do I reverse this and disconnect the station ?
Thanks
Re: Remove a connected station
Sorry, those are beyond my knowledge. Good luck
Re: Remove a connected station
It may be a call to esp_wifi_deauth_sta may be what we seek.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Who is online
Users browsing this forum: No registered users and 318 guests