Need help with esp8266 setup (compile issue?)

I am trying to set up a wifi shield with my project. I have a basic setup with Arduino Uno (SparkFun Red Board) and have attached SparkFun esp8266 wifi shield using stacked headers. I am using:

  1. Example code under Fille->Examples->Blynk->Boards_WiFi->ESP8266_Shield
  2. Blynk Libray version 0.6.1

The issue is I am not able to compile this with the right board; this should be flashing on Arduino UNO board and when I select that, I get the message: “Error compiling for board Arduino UNO”. I tried several other boards, but with no success. Any suggestions?

Here is the sample code I used (as reference):

[Unformatted code removed by moderator]

@sudhakar.bhat please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Pete.

Sorry Pete. Hope this works:

  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app

  Blynk library is licensed under MIT license
  This example code is in public domain.

 *************************************************************

  This example shows how to use ESP8266 Shield (with AT commands)
  to connect your project to Blynk.

  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

  Change WiFi ssid, pass, and Blynk auth token to run :)
  Feel free to apply it to any other example. It's simple!
 *************************************************************/

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


#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[] = "5SWSReGDY9EA-VRToSQn6WnuCguirDvx";

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

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

ESP8266 wifi(&EspSerial);

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

  delay(10);

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

  Blynk.begin(auth, wifi, ssid, pass);
}

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

No.

I gave you triple backticks to copy paste, why not use them?

Pete.

Done…

Any reason why you didn’t edit your original post as I requested?

Pete.

Pete - I didn’t realize I could edit my earlier post until later… Now I know:)

The clue was in…

Pete.

yes - I got it.

Anybody have any clues on what board to select to make sure it compiles? Appreciate any help here?