Page 1 of 1

ESP32 connection lost

Posted: Thu Jan 04, 2024 4:21 pm
by aaronik19
Dear All,

have an issue with ESP32-wroom-32E module. I wrote a simple program to make a Wifi SoftAp connection with my mobile. When the program was uploaded and made the test on the mobile in the WIFI connection manager it stated Connected and after some time, it started to display Connected without internet, and after sometime the connection is lost and connected every approx 3 seconds. What could be the problem? The setup code below

[Codebox]
void setup()
{
Serial.begin(9600);
WiFi.mode(WIFI_AP);

Serial.println("Create Network");
WiFi.softAP(ssid, password);
Serial.println(WiFi.softAPIP());

while(WiFi.status() != WL_CONNECTED)
{
Serial.print(".");
delay(100);
}

Serial.println("Connected");

}
[/Codebox]