ESP32 Disconnecting every Minute
Posted: Mon May 08, 2023 9:38 am
Hi,
i am currently having the problem that the ESP gets STA_DISCONNECTED excatly every minute.
Here is the log:
Is there any know problem that i dont know?
Below is the Init-Code from the WiFi
i am currently having the problem that the ESP gets STA_DISCONNECTED excatly every minute.
Here is the log:
Code: Select all
[1080645][D][WiFiGeneric.cpp:831] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[1080646][W][WiFiGeneric.cpp:852] _eventCallback(): Reason: 8 - ASSOC_LEAVE
[1082762][D][WiFiGeneric.cpp:831] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[1084004][D][WiFiGeneric.cpp:831] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[1084005][D][WiFiGeneric.cpp:880] _eventCallback(): STA IP: 10.0.0.24, MASK: 255.255.255.0, GW: 10.0.0.6
Got IP from WiFi
[1140653][D][WiFiGeneric.cpp:831] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[1140654][W][WiFiGeneric.cpp:852] _eventCallback(): Reason: 8 - ASSOC_LEAVE
[1140793][D][WiFiGeneric.cpp:831] _eventCallback(): Arduino Event: 9 - STA_LOST_IP
Reconnecting...
[1142925][D][WiFiGeneric.cpp:831] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[1143505][D][WiFiGeneric.cpp:831] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[1143506][D][WiFiGeneric.cpp:880] _eventCallback(): STA IP: 10.0.0.24, MASK: 255.255.255.0, GW: 10.0.0.6
Got IP from WiFi
[1200652][D][WiFiGeneric.cpp:831] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
[1200653][W][WiFiGeneric.cpp:852] _eventCallback(): Reason: 8 - ASSOC_LEAVE
[1202752][D][WiFiGeneric.cpp:831] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[1203505][D][WiFiGeneric.cpp:831] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[1203505][D][WiFiGeneric.cpp:880] _eventCallback(): STA IP: 10.0.0.24, MASK: 255.255.255.0, GW: 10.0.0.6
Got IP from WiFi
Below is the Init-Code from the WiFi
Code: Select all
void initWifi() {
WiFi.onEvent(WiFiEvent);
WiFi.setTxPower(WIFI_POWER_19_5dBm);
WiFi.mode(WIFI_STA);
WiFi.setSleep(WIFI_PS_NONE);
WiFi.setAutoReconnect(true);
WiFi.reconnect();
_statusWiFiConnection = 0;
}