ESP32 wifi SYSTEM_EVENT_STA_DISCONNECTED 34

ian007g
Posts: 1
Joined: Sat Nov 07, 2020 2:00 pm

ESP32 wifi SYSTEM_EVENT_STA_DISCONNECTED 34

Postby ian007g » Sat Nov 07, 2020 2:04 pm

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);

Who is online

Users browsing this forum: No registered users and 85 guests