Arduino Mega Copy +esp

hy . Sory for my english . i try to connect a esp with a mega (fake )and it doesn`t work . the program is working on arduino uno and is not working on mega…
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266.h>
#include <BlynkSimpleShieldEsp8266.h>

// Set ESP8266 Serial object
//#define EspSerial Serial1
// This can be a SoftwareSerial object (remember to also edit ESP8266.h):
#include “SoftwareSerial.h”
SoftwareSerial EspSerial(3, 2); // RX, TX

ESP8266 wifi(EspSerial);

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = “ffffffffffffffffffff”;

void setup()
pinMode(13, OUTPUT);
Serial.begin(9600); // Set console baud rate
EspSerial.begin(9600); // Set ESP8266 baud rate
Blynk.begin(auth, wifi, “D-LinkDS”, “aaaaaaaa”);

void loop()

In serial monitor:
[19] Blynk v0.3.0
[20] Connecting to D-LinkDS
[1036] Failed to disable Echo
In ESP8266.h i uncomment this line


Please follow the forum rules

Don’t post new messages, just edit the first post in the topic