Page 1 of 1

ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

Posted: Mon Dec 31, 2018 7:34 am
by ysadik
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?

Re: ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

Posted: Mon Dec 31, 2018 2:26 pm
by martinius96
Post your source code please

Re: ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

Posted: Wed Jan 02, 2019 6:50 am
by ysadik

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

Re: ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

Posted: Wed Jan 02, 2019 10:49 am
by Edje11
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);
          }

Re: ESP32 DEV KIT v4 MODULE WiFi Disconnect Problem

Posted: Fri Jan 04, 2019 6:22 am
by ysadik
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.