Page 1 of 1

ESP32 wifi SYSTEM_EVENT_STA_DISCONNECTED 34

Posted: Sat Nov 07, 2020 2:04 pm
by ian007g
HI,

I am seeing a repeated scenario where the wifi gets disconnected.
The error code is 34, what is error code 34 and how should I recover from it?

Regards


Ian G


evs_i("SYSTEM_EVENT_STA_DISCONNECTED");
auto &src = info.disconnected;
WiFiEventStationModeDisconnected dst;
dst.ssid = String(reinterpret_cast<char *>(src.ssid));
memcpy(dst.bssid, src.bssid, 6);
dst.reason = static_cast<WiFiDisconnectReason>(src.reason);

iWifiDisconnectCnt++;

evs_i("Count %d Disconnect reason :: %d ", iWifiDisconnectCnt, dst.reason);