BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Blynk Library Error

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

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

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

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
}

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

Hello, i need Help with my Project. Until trying to compile my code, an error occurents. The IDE of arduino does not find the library “BlynkSimpleEsp8266.h”. i dont have problems including the other library. Whats the Problem? Or where is the download?

Maybe im just dump… tell me…

dear

They are here but you MUST read the instructions about installing the libraries manually, not via the IDE.

I did it like the instruction said… the libraries installed well… i could load the example. Just “BlynkSimpleEsp8266.h” cant be found

If you look in the master you will see the file https://github.com/blynkkk/blynk-library/tree/master/src

It’s also in the zip file of the release.

Suggest you try to manually install the libraries again.

i installed it new…

Console:

Archiving built core (caching) in: C:\Users\Howe\AppData\Local\Temp\arduino_cache_552986\core\core_esp8266_esp8266_d1_CpuFrequency_80,FlashSize_4M1M,LwIPVariant_v2mss536,Debug_Disabled,DebugLevel_None____,UploadSpeed_921600_9e8b5f007509d6daa4aaa6e72b468a4f.a
Der Sketch verwendet 263495 Bytes (25%) des Programmspeicherplatzes. Das Maximum sind 1044464 Bytes.
Globale Variablen verwenden 35112 Bytes (42%) des dynamischen Speichers, 46808 Bytes für lokale Variablen verbleiben. Das Maximum sind 81920 Bytes.
Uploading 267648 bytes from C:\Users\Howe\AppData\Local\Temp\arduino_build_198442/NodeMCU.ino.bin to flash at 0x00000000
… [ 30% ]
… [ 61% ]
… [ 91% ]
… [ 100% ]

i think it compiles right now.

Hi there,

I have almost the same issue:

\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp8266.h:18:21: fatal error: version.h: No such file 
or directory

#include <version.h>

                 ^

compilation terminated.

exit status 1
Error compilando para la tarjeta WeMos D1 mini Pro.

i allready reinstall the blynk libraries. i get the same issue.

any idea?

This is the code i used:

#include <ESP8266WiFi.h>  
#include <BlynkSimpleEsp8266.h>
#include <ESP8266WebServer.h>
#include <DNSServer.h>
#include <WiFiManager.h>
#include <IRremoteESP8266.h>
#include <IRsend.h> 

char auth[] = "";


IRsend irsend(D1); 

uint16_t rawData[99] = {8950, 4400, 600, 1650, 600, 1650, 550, 550, 600, 500, 600, 550, 600, 550, 550, 550, 600, 1650, 600, 500, 600, 1650, 550, 1650, 600, 550, 550, 550, 600, 550, 550, 550, 600, 550, 550, 550, 600, 500, 600, 550, 550, 550, 600, 550, 550, 550, 600, 550, 600, 500, 600, 550, 550, 1650, 600, 500, 600, 550, 600,1650, 550, 1650, 600, 1650, 600, 550, 550, 550, 600, 500, 600, 550, 550, 550, 600, 500, 600, 550, 600, 550, 550, 550, 600, 500, 600, 550, 550, 550, 600, 500, 600, 550, 600, 550, 550, 550, 600, 500, 600};


String myHostname = "CWP-SmartRG-76b1";  

void setup() 
{
  WiFi.hostname(myHostname);
  WiFiManager wifi;
  wifi.autoConnect("HumificadorHONGOS"); 
  Blynk.config(auth);

  irsend.begin();

  Serial.begin(115200);
  delay(10);
}

BLYNK_WRITE(V5){

  int onoff = param.asInt();
  if(onoff == 1){
  irsend.sendRaw(rawData, 99, 38);
  }
}


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

Good day !
Blynk novice here !

I have same issue here… #include <version.h> missing error , when try to compile simple blynk sketech … uuuughhhh !!!

blynk library installed on arduino IDE are lattest 0.5.4 version.

my sketch only have follow library included
#include <BlynkSimpleEsp8266.h>

and Blynk.config(auth); on setup() and Blynk.run on loop()

I´m with esp8266 2.3.0-rc2 core library and arduino IDE 1.8.3 , so I think not needed any update to make work blynk.

Same board too wemos D1… any news about to complile sketch with blynk with no errors aboyt this library referenced???

Any idea how to solve it ???

Regards…

why do you think so? 2.3.0 is not the latest. It’s very old actually

I know is not the lastest core, but is stable for my purposses actually, I have some issues on 2.4.0, but I need mainly stability with core at this moment.
I do a workarround for test only that seems working . I have done some changes on BlynkSimpleEsp8266.h that I think can be done without any collateral issue on his funtionality (I know I know…I´m playing with fire…but I like the risk :- )) ), that´s it:

I commented the following to make it compile:

#include <version.h>

#if ESP_SDK_VERSION_NUMBER < 0x020200
#error Please update your ESP8266 Arduino Core
#endif

And error are solved !

Now Im triying to complie my first simple blynk sketches and we’ll see what happens…

NOTE: I think that check core version it´s not required for make blynk work maybe can introduce some bug if some blynk funtionality need some last (upper) version from esp core that you have…but maybe not…

As you may imagine, we did this check for a purpose.
So I expect you now added some bugs :wink:
You should try 2.4.1+ - it is actually much more stable

Of course…thats its only a rude aproach to make blynk fast work on my actual environment. In few days I go to make a arduino platform for compiling with lastest core 2.4.2 but need to adjust old librarys that I intesively use that I dont know if can be stable enough with other core that 2.3.0…
I report here what I find on blynk evolved

Thx. so m.

A post was split to a new topic: Compiler Error