ESP32 connection lost

aaronik19
Posts: 3
Joined: Sun Dec 31, 2023 11:21 am

ESP32 connection lost

Postby aaronik19 » Thu Jan 04, 2024 4:21 pm

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]

Who is online

Users browsing this forum: No registered users and 71 guests