ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

ysadik
Posts: 3
Joined: Mon Dec 31, 2018 7:14 am

ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

Postby ysadik » Mon Dec 31, 2018 7:34 am

hello,

I'm working on ESP32 Dev Kit v4 module and I have a problem. After ESP32 connect to our wifi , it was disconnected in a few minute.
How can I solved these problem? Why is ESP32 reason to disconnect? I began to start stabil but after 10 min or 20 min module was disconnected. Could someone help me?

martinius96
Posts: 33
Joined: Thu Dec 13, 2018 1:39 am

Re: ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

Postby martinius96 » Mon Dec 31, 2018 2:26 pm

Post your source code please

ysadik
Posts: 3
Joined: Mon Dec 31, 2018 7:14 am

Re: ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

Postby ysadik » Wed Jan 02, 2019 6:50 am

Code: Select all

void setup()
 {
          Serial.begin(115200);
          WiFi.begin(ssid, password);
          }
 
 void loop() {
       if(WiFi.status() != WL_CONNECTED) 
       {
           Serial.print(".");
           digitalWrite (greenpin,LOW);
           replay = true;
           }
        
       else if (WiFi.status() == WL_CONNECTED && replay == true  )
       {
           Serial.println("IP address: ");
           Serial.println(WiFi.localIP());
           replay = false;
           Serial.println(ssid);
           digitalWrite (greenpin,HIGH);
          }
        

Edje11
Posts: 18
Joined: Thu May 17, 2018 10:33 am
Contact:

Re: ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

Postby Edje11 » Wed Jan 02, 2019 10:49 am

Print the wifi status to see what the problem is.

Code: Select all

 void loop() {
       if(WiFi.status() != WL_CONNECTED) 
       {
           Serial.print(WiFi.status());
           Serial.print(".");
           digitalWrite (greenpin,LOW);
           replay = true;
           }
        
       else if (WiFi.status() == WL_CONNECTED && replay == true  )
       {
           Serial.println("IP address: ");
           Serial.println(WiFi.localIP());
           replay = false;
           Serial.println(ssid);
           digitalWrite (greenpin,HIGH);
          }

ysadik
Posts: 3
Joined: Mon Dec 31, 2018 7:14 am

Re: ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

Postby ysadik » Fri Jan 04, 2019 6:22 am

Thank you for suggest but I tried and I can not see anything. Also module was look like disconnect wifi but program continue to work background.

Who is online

Users browsing this forum: No registered users and 60 guests