I'm using the ESP8266 module for WIFI communications but there is one thing caused a great problem for our device. We use Soft AP to set credentials for the ESP to connect it to a router. But the problem is that we use open WIFI net without security and sometimes all available channels become busy
Controlling of connected station to softAP
Controlling of connected station to softAP
Postby ukrsms » Tue Oct 17, 2017 6:04 pm
Hi, All
I'm using the ESP8266 module for WIFI communications but there is one thing caused a great problem for our device. We use Soft AP to set credentials for the ESP to connect it to a router. But the problem is that we use open WIFI net without security and sometimes all available channels become busy
before I started to connect to AP. I looked through the documentation but haven't found any information how could ESP itself disconnect some station from its WIFi. Could someone help me to solve the problem?
I'm using the ESP8266 module for WIFI communications but there is one thing caused a great problem for our device. We use Soft AP to set credentials for the ESP to connect it to a router. But the problem is that we use open WIFI net without security and sometimes all available channels become busy
Re: Controlling of connected station to softAP
Postby ukrsms » Fri Oct 20, 2017 8:37 pm
Of course, it could be done so, but is not convenient to enter a long password every time a user wants to connect to device's Net. It would be easier just to select open WIFI net and if the user is not authorized then the device could disconnect it.
Re: Controlling of connected station to softAP
Postby blubb » Sat Oct 21, 2017 1:49 am
AFAIK there is no API for this. I don't know why. I once read that you needed to send a "deauth" packet and this had to be generated manually. In any case there is no easy solution.
Maybe you should open a request here:
https://github.com/espressif/ESP8266_NONOS_SDK/issues
On the other hand even just a very short password should do the job for you...
Maybe you should open a request here:
https://github.com/espressif/ESP8266_NONOS_SDK/issues
On the other hand even just a very short password should do the job for you...
Re: Controlling of connected station to softAP
Postby blubb » Sat Oct 28, 2017 5:13 am
Actually, in libmain there seems to be a wifi_softap_deauth function... but since it is not in any .h file, I am not sure how to use it.
Maybe Espressif could elaborate on this.
Maybe Espressif could elaborate on this.
Re: Controlling of connected station to softAP
Postby ukrsms » Sun Oct 29, 2017 4:59 pm
blubb wrote:Actually, in libmain there seems to be a wifi_softap_deauth function... .
Well done, blubb! It seems it is what I was looking for. I found the prototype for the function:
Code: Select all
bool wifi_softap_deauth(uint8 mac[6]);I've just tried it - it works fine. So the function provides us a possibility to disconnection of some station from our AP if it is necessary.
Who is online
Users browsing this forum: No registered users and 120 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.