[500100] Connecting to 0.0.0.0:0 in serial monitor output (never connects to Blynk)

I keep getting the message (that’s in the topic title) in the serial monitor of Arduino IDE when running it on an ESP8266 0.9

The number in square parentheses increases by 5001 each printout.

The 5000 increase is a 5 second Blynk loop trying to reconnect. Post your sketch so we can see what the problem is.

#define BLYNK_PRINT Serial // Enables Serial Monitor
#include <Wire.h>
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp8266.h>


//char auth[] =""; // Put your Auth Token here. (see Step 3 above)
//const char* ssid = "";
//const char* password = "";

int intWiFiIndex = 0;

void setup()
{
  Serial.begin(9600); // See the connection status in Serial Monitor
  while (!Serial){    
  }
  Serial.println("I'm here!");                    // Begin serial terminal and wait 1 sec. to let it initialize.
  Wire.begin();
    
  Serial.print("Connecting to: ");                // Connecting to WiFi network.
  Serial.println(ssid);
  WiFi.begin(ssid, password);                     // Inform user through serial monitor that ESP is connecting to network router.
    
  while (WiFi.status() != WL_CONNECTED){          // Try to establish WiFi connection and startup Web server.
      delay(500);
      intWiFiIndex++;
      Serial.print(".");                            // Keep printing 'dots' whilst WiFi channel is not connected to ESP. Give up and continue rest of program after 30 sec.
      if (intWiFiIndex >= 60){
          Serial.print("Unable to connect to ");    // Tell user that ESP8266 was unable to connect via WiFi router, and is reverting to local preference control.
          Serial.println("ssid");
          Serial.println("Reverting to local control!");
          break;
      }
  }
  if (WiFi.status() == WL_CONNECTED){
        
    Serial.println("");
    Serial.println("WiFi connected");             // Inform user that WiFi has successfully connected!
    Serial.println(WiFi.localIP());
  }
  //Blynk.begin(auth);  // Here your Arduino connects to the Blynk Cloud.
}

void loop()
{
  Blynk.run(); // All the Blynk Magic happens here...

  // You can inject your own code or combine it with other sketches.
  // Check other examples on how to communicate with Blynk. Remember
  // to avoid delay() function!
}

Edit your last post, highlight the sketch and press </> button so it is legible on the forum.

I modified BlynkSimpleESP8266WiFi.h to solve a ‘blynk does not name a type’ problem, blynk.begin was commented out or removed and the authentication and login for wifi and blynk is in the header.

I think you failed to install the 5 libraries if you are modifying the headers.
On a WeMos D1 Mini my Serial Monitor shows:

Connecting to: Office
..
    WiFi connected
    192.168.10.172
    [1240] Connecting to Office
    [1240] Connected to WiFi
    [1240] My IP: 192.168.10.172
    [1240] Blynk v0.3.4
    [5001] Connecting to blynk-cloud.com:8442
    [5329] Ready (ping: 1ms).

With your sketch without the editing of:

#define BLYNK_PRINT Serial // Enables Serial Monitor
#include <Wire.h>
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp8266.h>


char auth[] ="xxxxxxxxxxxxxxxx";
const char* ssid = "Office";
const char* password = "xxxxxxxxxxxx";

int intWiFiIndex = 0;

void setup()
{
  Serial.begin(115200);
  while (!Serial){    
  }
  Serial.println("I'm here!");
  Wire.begin();
    
  Serial.print("Connecting to: ");
  Serial.println(ssid);
  WiFi.begin(ssid, password);
    
  while (WiFi.status() != WL_CONNECTED){
      delay(500);
      intWiFiIndex++;
      Serial.print(".");                            // Keep printing 'dots' whilst WiFi channel is not connected to ESP. Give up and continue rest of program after 30 sec.
      if (intWiFiIndex >= 60){
          Serial.print("Unable to connect to ");    // Tell user that ESP8266 was unable to connect via WiFi router, and is reverting to local preference control.
          Serial.println("ssid");
          Serial.println("Reverting to local control!");
          break;
      }
  }
  if (WiFi.status() == WL_CONNECTED){
        
    Serial.println("");
    Serial.println("WiFi connected");
    Serial.println(WiFi.localIP());
  }
  Blynk.begin(auth, ssid, password);
}

void loop()
{
  Blynk.run();
}

Try installing the libraries as per https://github.com/blynkkk/blynk-library/releases/tag/v0.3.4

1 Like