Wi-Fi Reason Code

User avatar
arunbm123
Posts: 96
Joined: Fri Feb 23, 2018 5:36 am

Wi-Fi Reason Code

Postby arunbm123 » Sat Mar 16, 2019 2:19 pm

hello all

This could be most silly question but I am finding it difficult.

In case SYSTEM_EVENT_STA_DISCONNECTED:
I would Like to get Wi-Fi Reason Code here to check the reason for disconnection , How to get ?

Thanks

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Wi-Fi Reason Code

Postby fly135 » Sat Mar 16, 2019 4:08 pm

system_event_sta_disconnected_t *disconnected = &event->event_info.disconnected;
printf("SYSTEM_EVENT_STA_DISCONNECTED, ssid:%s, ssid_len:%d, bssid:" MACSTR ", reason:%d\n", disconnected->ssid,
disconnected->ssid_len, MAC2STR(disconnected->bssid), disconnected->reason);

Who is online

Users browsing this forum: lpinter, Majestic-12 [Bot] and 100 guests