logo elektroda
logo elektroda
X
logo elektroda

Restricting access to the ESP8266 in Access Point mode via MAC?

Shel 627 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 17580108
    Shel
    Level 27  
    Hi, I'm running ESP in AP mode and would like to restrict access to it by filtering the MAC address of the connecting device, but somehow I can't find a sensible example anywhere....
  • ADVERTISEMENT
  • #3 17588465
    Nagus
    Level 27  
    Write a SYSTEM_EVENT_AP_STACONNECTED system event handler. This is shown in practically every example: your own event handler is set by esp_event_loop_init. As a parameter for the event handler you get the MAC address of the connected station (there will be something to know by) and its aid, i.e. there will be something to substitute into the esp_wifi_deauth_sta function.
ADVERTISEMENT