Compiling error

//#define BLYNK_DEBUG
#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 Serial

ESP8266 wifi(EspSerial);

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

void setup()
{
  // Set console baud rate
  Serial.begin(9600);
  delay(10);
  // Set ESP8266 baud rate
  EspSerial.begin(115200);
  delay(10);

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

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

please help…

Arduino: 1.6.5 (Windows 7), Board: “Arduino Uno”

In file included from ESP8266_Shield_HardSer.ino:32:0:
C:\Program Files (x86)\Arduino\libraries\blynkkk-blynk-library-e4e609c/BlynkSimpleShieldEsp8266.h:14:2: error: #error Sorry, we changed things a little bit. Please check new examples for ESP8266. This is easy to fix :slight_smile:
#error Sorry, we changed things a little bit. Please check new examples for ESP8266. This is easy to fix :slight_smile:
^
ESP8266_Shield_HardSer.ino: In function ‘void setup()’:
ESP8266_Shield_HardSer:52: error: ‘Blynk’ was not declared in this scope
ESP8266_Shield_HardSer.ino: In function ‘void loop()’:
ESP8266_Shield_HardSer:57: error: ‘Blynk’ was not declared in this scope
Multiple libraries were found for “ESP8266.h”

Used: C:\Program Files (x86)\Arduino\libraries\vshymanskyy-ITEADLIB_Arduino_WeeESP8266-2f92cb8

Not used: C:\Program Files (x86)\Arduino\libraries\ITEADLIB_Arduino_WeeESP8266-master

‘Blynk’ was not declared in this scope

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

Please edit your post. Code should be formatted.
Wrap the code by pressing this magic button (Backtick`) 3 times (before the code and after it):**

Example:

 ``` <--- insert this 
 Paste your code here
 ``` <--- insert this 

This makes your code beautiful with highlighted syntax, like this:

//comment goes here 
void helloWorld() { 
   String message =  "hello" + "world"; 
}

You can also select the code and press </> button in the top menu:

You need to download the most recent Blynk library and change the simple shield line to hardser as mentioned in the error text. If you are using my tutorial, I apologize. I need to update it. The simple shield.h file isn’t used anymore.

1 Like