-->
Page 1 of 1

Detect client wrong password in wifi.h

PostPosted: Thu Apr 06, 2023 4:01 pm
by MahdiPourlotfi
hi
i have esp8266 project and use "wifi.h" library to create local wifi network between other esp modules
how i can detect from server (esp in ap mode) that which station(mac address) want connect to network but has wrong password

i use this events but was not true answer : :oops:
Code: Select allvoid onProbeRequestPrint(const WiFiEventSoftAPModeProbeRequestReceived &evt);

void onStationDisconnected(const WiFiEventSoftAPModeStationDisconnected &evt);

void onStationConnected(const WiFiEventSoftAPModeStationConnected &evt);

Re: Detect client wrong password in wifi.h

PostPosted: Thu Apr 13, 2023 9:44 am
by rooppoorali
You can use the onStationAuthModeChanged event to detect when a station attempts to authenticate with the access point, and then check if the authentication was successful or not. The onStationAuthModeChanged event is triggered when a station's authentication mode changes, such as when it attempts to connect to the access point.
https://sming.readthedocs.io/en/latest/ ... Class.html