WiFi SoftAP and data collection on failed connection attempt
Posted: Fri Oct 18, 2019 4:37 am
I need to collect data about clients who are trying to connect to the AP, but do not know the password.
I put processing on Event
I see a connection attempt (number_client> 0)
station_info is not empty, sizeof (station-> bssid) = 6
When trying to display "bssid" data
or
..
Reboot
Thank.
I put processing on Event
Code: Select all
void WiFiEvent (WiFiEvent_t event) {
uint8_t macAddr [6];
unsigned char number_client = wifi_softap_get_station_num ();
struct station_info * station = wifi_softap_get_station_info ();
I see a connection attempt (number_client> 0)
station_info is not empty, sizeof (station-> bssid) = 6
When trying to display "bssid" data
Code: Select all
Serial.println (macToString (station-> bssid));
or
Code: Select all
Serial.print (station-> bssid [0], HEX);
Serial.print (station-> bssid [6], HEX);
..
Reboot
Code: Select all
Is it possible to find out station-> bssid?Exception (28):
epc1 = 0x4020106e epc2 = 0x00000000 epc3 = 0x00000000 excvaddr = 0x00000004 depc = 0x00000000
>>> stack >>>
ctx: sys
sp: 3fffed60 end: 3fffffb0 offset: 01a0
3fffef00: 00000071 00000001 4010404e 3ffedf68
Thank.