Blynk doesnt go to "ready" on Arduino Mega 2560 R3

Hey guys,
I am using a Arduino Mega 2560 R3 with a ESP8266.
When I try to connect to the Blynk Servers and look into ther serial monitor, my ESP only get to “Connected to wifi” and not further. No ping just nothing.
When I look into my Blynk Template/Device it also says that its offline.
Here is a picture of my serial monitor:


I am using an example code from the Blynk templates.
I appreciate any advise. :slight_smile:

It would help if you posted the exact code you are using.

Pete.

/*************************************************************
  WARNING!
    It's very tricky to get it working. Please read this article:
    http://help.blynk.cc/hardware-and-libraries/arduino/esp8266-with-at-firmware

  You’ll need:
   - Blynk IoT app (download from App Store or Google Play)
   - Arduino Mega 2560 board
   - Decide how to connect to Blynk
     (USB, Ethernet, Wi-Fi, Bluetooth, ...)

  There is a bunch of great example sketches included to show you how to get
  started. Think of them as LEGO bricks  and combine them as you wish.
  For example, take the Ethernet Shield sketch and combine it with the
  Servo example, or choose a USB sketch and add a code from SendData
  example.
 *************************************************************/

/* Fill-in information from Blynk Device Info here */
#define BLYNK_TEMPLATE_ID "TMPLP9HBGtDL"
#define BLYNK_DEVICE_NAME "Gartenhaus IOT cmp"
#define BLYNK_AUTH_TOKEN “*******************"

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "SuperSuperSuper";
char pass[] = "**************";

// Hardware Serial on Mega, Leonardo, Micro...
#define EspSerial Serial1

// or Software Serial on Uno, Nano...
//#include <SoftwareSerial.h>
//SoftwareSerial EspSerial(2, 3); // RX, TX

// Your ESP8266 baud rate:
#define ESP8266_BAUD 38400

ESP8266 wifi(&EspSerial);

void setup()
{
  // Debug console
  Serial.begin(115200);

  // Set ESP8266 baud rate
  EspSerial.begin(ESP8266_BAUD);
  delay(10);

  //Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass);
  // You can also specify server:
  Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass, "blynk.cloud", 80);
  //Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);
}

void loop()
{
  Blynk.run();
  // 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!
}

Is there a reason why you’ve blocked-out your IP address?
Is this being used in a domestic environment?

Pete.

Yes, I use it in my house. Or at least try to.
I want to monitor some plants and it worked good with a 1.3 inch oled display and now I want to connect it to Blynk to be able to see it online.

It could be a firmware issue. Have you tried a different version?

So can you confirm that the device is being allocated a proper IP address via DHCP from your router?

Pete.

Interesting. Do you mean the blynk version or the esp?

How can I check that?

You’ve blocked-out the IP address and MAC address in your first post. These aren’t pieces of information that pose a security risk, so there’s no point in keeping them secret.
Check the IP address that’s shown in the serial monitor and make sure that it’s within the address range of the other devices on your network.

Have you tried rebooting your router?

Pete.

1 Like

I will do that but what do you mean with “within the address range”.Sorry I am completly new to networking. Thank you for the information about IP and MAC address.

If your router is serving-up IP addresses in the 192.168.1.x range for all of your other devices then the IP address allocated to your device needs to be in the same range.
If it’s not, then your device won’t be able to talk to the Blynk server.

Is there any reason why you’ve chosen this particular hardware?

Pete.

There isn’t a particular reason. It just seamed good for what I wanted to do.
Is there a way to change my devices IP adress if it isn’t in the same range?

It would help if you started by answering g the question.

Pete.

I restarted my router and checked the form of my IP addresses. It didn’t work. Have you other tips for me?

Not really, these boards aren’t the easiest things to work with, so your debugging options are limited.

Pete.

I thank you for trying to help me. Should I just go for a nodemcu esp32?

That’s the best approach. Both the ESP32 and NodeMCU are low-cost microcontrollers with built-in WiFi capabilities.

The ESP32 is a powerful microcontroller with a dual core processor and plenty of memory, making it well-suited for more complex projects. It also has a wide range of peripherals and interfaces, including multiple UARTs, SPI, I2C, and I2S, as well as a variety of general-purpose input/output (GPIO) pins.

NodeMCU is based on the ESP8266 microcontroller, which is a lower cost and less powerful alternative. Its capabilities are similar to the ESP32, but it has less memory and processing power. It is well suited for simple projects and is popular among hobbyists and makers.

In summary, ESP32 is more powerful and versatile, while NodeMCU is less powerful and less expensive.