Need Help, Arduino Uno SparkFun ESP8266 WiFi Shield

Trying to connect to Blynk using Arduino Uno and SparkFun ESP Wi Fi Shield using the code below.
I receive this error in the serial monitor, Give Blynk a Github star! => https://github.com/blynkkk/blynk-library

[675] Connecting to NETGEAR26
[1690] ESP is not responding.

Looks like it connects to my router NETGEAR26, but the the ESP is not responding. Need direction or help to troubleshoot. I have tried many different sketches but this one is the only one that connected to my router.

Thanks

Paul


/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
/* Set this to a bigger number, to enable sending longer messages */
//#define BLYNK_MAX_SENDBYTES 128

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

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

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

// 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 9600

ESP8266 wifi(&EspSerial);

void emailOnButtonPress()
{
  // *** WARNING: You are limited to send ONLY ONE E-MAIL PER 15 SECONDS! ***

  // Let's send an e-mail when you press the button
  // connected to digital pin 2 on your Arduino

  int isButtonPressed = !digitalRead(2); // Invert state, since button is "Active LOW"

  if (isButtonPressed) // You can write any condition to trigger e-mail sending
  {
    Serial.println("Button is pressed."); // This can be seen in the Serial Monitor
    Blynk.email("your_email@mail.com", "Subject: Button Logger", "You just pushed the button...");

    // Or, if you want to use the email specified in the App (like for App Export):
    //Blynk.email("Subject: Button Logger", "You just pushed the button...");
  }
}

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

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

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

  // Send e-mail when your hardware gets connected to Blynk Server
  // Just put the recepient's "e-mail address", "Subject" and the "message body"
  Blynk.email("your_email@mail.com", "Subject", "My Blynk project is online.");

  // Setting the button
  pinMode(2, INPUT_PULLUP);
  // Attach pin 2 interrupt to our handler
  attachInterrupt(digitalPinToInterrupt(2), emailOnButtonPress, CHANGE);
}

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

Not sure what your doubt is but start by removing the second:

You only need one.

Idb,

That was a typo it was not in my actual code.

Thanks

Any Arduino with ESP-as-shield issue has been covered numerous times in this forum… search and you will find all the answers. ESP Power requirements, Serial pin crossing, proper code, etc.

https://community.blynk.cc/search?q=UNO%20ESP%20shield

Gunner,

The information was in the link you provided. Switched serial 2,3 to serial 8,9 in the code and that solved the issue.

Thank you

Paul

Well glad you got it working… but FYI software serial can work on most any set of pins, if setup properly… I even have an UNO linked to an ESP-01 via Analog pins A0 & A1 (in digital mode)… so you probably just had a bad connection at first.