Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32 AP模式下,有sta退出wifi的时候,触发事件非常慢 (IDFGH-2257) #4401

Closed
fzboffice opened this issue Nov 26, 2019 · 3 comments
Assignees

Comments

@fzboffice
Copy link

有sta退出wifi的时候
WIFI_EVENT_AP_STADISCONNECTED这个事件要过2分钟才触发,请问哪里可以设置快一些触发?

@github-actions github-actions bot changed the title ESP32 AP模式下,有sta退出wifi的时候,触发事件非常慢 ESP32 AP模式下,有sta退出wifi的时候,触发事件非常慢 (IDFGH-2257) Nov 26, 2019
@liuzfesp
Copy link
Contributor

@fzboffice we have two different scenario to trigger this event:

  • The event will be triggered immediately when it receives the deauth/disassociation frame from the STA.
  • The event will be triggered when the 5 minutes keep-alive timer expires, the timer expire if the AP doesn't receive any packets from STA for 5 minutes. Generally this scenario happens when the STA do hardware reset/power-off, or when the disassociation/de-auth frame is failed received by AP. Currently we don't have API to configure the keep-alive timer.

@fzboffice
Copy link
Author

@fzboffice we have two different scenario to trigger this event:

  • The event will be triggered immediately when it receives the deauth/disassociation frame from the STA.
  • The event will be triggered when the 5 minutes keep-alive timer expires, the timer expire if the AP doesn't receive any packets from STA for 5 minutes. Generally this scenario happens when the STA do hardware reset/power-off, or when the disassociation/de-auth frame is failed received by AP. Currently we don't have API to configure the keep-alive timer.

@liuzfesp 能不能加入api让我可以修改这个计时器呢?谢谢

@liuzfesp
Copy link
Contributor

@fzboffice sure we can add API to do it, but we don't have time to do that in 2019 because we have other higher priority work to do. Maybe we can consider to add it in IDF v4.2.

espressif-bot pushed a commit that referenced this issue Aug 16, 2020
1. add sta connect again ap sent disconnect event
2. add set/get inactive time api

Closes #4401
Closes #4987
Closes #2375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants