How to use whitelist in AP mode?

jimcooper
Posts: 8
Joined: Thu Apr 12, 2018 4:07 am

How to use whitelist in AP mode?

Postby jimcooper » Wed Jun 27, 2018 7:49 am

HI all

I want to allow specific mac address can connect to AP.
How to do that? Is there have any API to use?

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: How to use whitelist in AP mode?

Postby kolban » Wed Jun 27, 2018 3:27 pm

If there isn't a better way, one option that might have merit is to detect the new station attached event, examine the BSSID of the connected device and if you don't want it, execute an esp_wifi_deauth_sta() API call to de-authenticate it. Just a guess.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Who is online

Users browsing this forum: Baidu [Spider] and 240 guests