Hi ,
I am using an Arduino Mega with an ESP8266 module, that I try to connect with Blynk through Wi-Fi.
But I encounter the following problem: on the Blynk app it shows “Device wasn’t online yet”, I suspect that it’s due to the fact that my ESP8266 cannot establish a connection with the Blynk Cloud. In fact, when I run the example code, the ESP doesn’t seem to ping with the server.
I have done a lot of research but none seems to lead me anywhere. Does anyone have an idea ?
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
// Set ESP8266 Serial object
#define EspSerial Serial1
ESP8266 wifi(&EspSerial);
char auth[] = "I0oxxxxxxxxxxxxxx0cUJCW7iB6B";
void setup()
{
Serial.begin(9600); // Set console baud rate
delay(10);
EspSerial.begin(9600); // Set ESP8266 baud rate
delay(10);
Blynk.begin(auth, wifi, "Macha","txxxxxxxxg");
}
void loop()
{
Blynk.run();
}
Blockquote
RX1 (Arduino) --> TX (ESP)
TX1(Arduino) -->TX(ESP)
GND (Arduino) --> GND (ESP)
3,3 V (Arduino) --> 3,3V & EN (ESP)