[SOLVED] Where I can find ESP8266_SoftSer.h?

Hi Blynk team,

Could you please advise where I can find ESP8266_SoftSer.h ?
There is no file in your library set in the latest version.

Thanks,
Piotr

1 Like

OK. so if this file exist in new version of Blynk I mean v0.3.1 why I still receive this error?

ESP8266_Shield_HardSer.ino:31:29: fatal error: ESP8266_HardSer.h: No such file or directory
compilation terminated.
Error compiling.

Sorry but I have tried many different ways and still stuck in the same place?
Could you please help me?

OK I have found solution.
If somebody will have the same problem like me.
You need copy files and directories in this structure:
C:\Program Files (x86)\Arduino\libraries\Blynk
C:\Program Files (x86)\Arduino\libraries\BlynkESP8266_HardSer
C:\Program Files (x86)\Arduino\libraries\BlynkESP8266_SoftSer
C:\Program Files (x86)\Arduino\libraries\SimpleTimer

2 Likes

@Pavel your example for Arduino’s using ESP’s that only have one serial port includes the ‘missing’ ESP8266_SoftSer.h as pointed out by @ojdas

Even after tidying up my libraries I can’t find this header file anywhere and that is also the case if I search a full download from github.

I tried @ojdas solution of all libraries in one place but if the header is not there that will surely not work.

Strange thing is I have been using single serial port Arduinos for several weeks without this header. Having had a rough time with the ESP’s I thought I would start from scratch and work from your recommended sketches, only to find it will not compile as the header is missing.

Until the header file is ‘found’ I will go back to working with ESP8266_HardSer.h.

I think you’ve cleaned way too much :smile:

The file for sure is in the library: https://github.com/blynkkk/blynk-library/blob/master/BlynkSimpleShieldEsp8266_SoftSer.h

Just re-download everything and re-install

@Pavel cleared 5 or 6 versions of Arduino going back years but no joy.

I asked for ESP8266_SoftSer.h but you directed me to BlynkSimpleShieldEsp8266_SoftSer.h

@vshymanskyy would know better

Just use the full zip file from version 0.3.1 - it has all the libraries

@vshymanskyy the first time around I used 0.3.1 but on my fresh install I tried to go straight to 0.3.3 beta.

I think the problem was the way I was taking the beta from github. As @ojdas states the 4 required libraries must be in separate directories and when I take 0.3.1 from github the libraries are in the correct directory structure. I just needed to unzip into my libraries directory.

When I take the beta from github it comes back with a different structure starting with blynk-library-master etc. From there I got into a real mess. Think I am back up and running now.

I’m trying use the Blynk library in PlatformIO and I’m unable to add ESP8266_SoftSer.h. I’ve added the primary Blynk library but since this directory doesn’t include the BlynkESP8266_HardSer, BlynkESP8266_SoftSer and SimpleTimer directories I’m unable to make use of the library. I don’t know if this is a library issue or a limitation of PlatformIO. The only other method to add libraries to PlatformIO that I’m aware of is via library.json manifest or manual creation. Library.json doesn’t work since the files don’t seem to be available via your GitHub repository (zip file excluded). I suspect I’ll have to manually add it to my project?

@2stacks as I know Platformio already has Blynk within library manager.

Yes, but that library does not contain ESP8266_SoftSer.h even though BlynkSimpleShieldEsp8266_SoftSer.h references it.
Update: I was able to compile my code by importing from Arduino IDE to PlatformIO and selecting “Use Arduino IDE Library Manager”

@vshymanskyy could you please advise?

Someone please help me. I have to submit it by tomorrow and facing an error!

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266_SoftSer.h>
#include <BlynkSimpleShieldEsp8266_SoftSer.h>
#include <Blynk/BlynkApi.h>
#include <BlynkApiArduino.h>

// Set ESP8266 Serial object
#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX

ESP8266 wifi(EspSerial);

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

#define red 11
#define green 10
#define blue 9 

void setup()
{
  // Set console baud rate
  Serial.begin(9600);
  delay(10);
  // Set ESP8266 baud rate
  // 9600 is recommended for Software Serial
  EspSerial.begin(9600);
  delay(10);

  Blynk.begin(auth, wifi, "username", "password");  // wifi username and password
}

BLYNK_WRITE(V1) 
{
  int x = param[0].asInt();
  
    while(x==1)
   {
    x = param.asInt();
    int i=0,j=0,k=0;
    analogWrite(red, 255);
    analogWrite(green, 255);
    analogWrite(blue, 255);
    
      for(int j=0;j<20;j++)
      {
       analogWrite(red, 0);
       analogWrite(green, 255);
       analogWrite(blue, 255);
       delay(100);
       analogWrite(red, 255);
       analogWrite(green, 0);
       analogWrite(blue, 255);
       delay(100);
       analogWrite(red, 255);
       analogWrite(green, 255);
       analogWrite(blue, 0);
       delay(100);
        x = param.asInt();
        if(x==0)
        break;
      }
    
    analogWrite(red, 255);
    analogWrite(green, 255);
    analogWrite(blue, 255);
    
    for(int z=0;z<10;z++)
    {
    for(i=0;i<=180;i++)
    {
            analogWrite(red, 180-i);
            delay(2);
    }
    analogWrite(red, 255);
    for(j=0;j<255;j++)
    {
            analogWrite(green, 255-j);
             delay(2);
    }
    analogWrite(green, 255);
    for(k=0;k<255;k++)
    {
            analogWrite(blue, 255-k);
             delay(2);
    }
    analogWrite(blue, 255);
     x = param.asInt();
     if(x==0)
     break;
     
    }
    
    analogWrite(red, 255);
    analogWrite(green, 255);
    analogWrite(blue, 255);
        for(int z=0;z<5;z++)
    {

    for(j=0;j<255;j++)
    {
            analogWrite(green, 255-j);
             delay(20);
    }
    for(k=0;k<255;k++)
    {
            analogWrite(blue, 255-k);
             delay(20);
    }
    
        for(i=0;i<=180;i++)
    {
            analogWrite(red, 180-i);
            delay(20);
    }
    analogWrite(red,180);
     x = param.asInt();
     if(x==0)
     break;
    }
   if(x==0)
   break;
  }
    analogWrite(red, 255);
    analogWrite(green, 255);
    analogWrite(blue, 255);
}

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

Error that I am facing is: In file included from C:\Program Files (x86)\Arduino\libraries\BlynkSimpleShieldEsp8266_SoftSer/BlynkSimpleShieldEsp8266_SoftSer.h:20:0,
from sketch_feb14a.ino:3:
C:\Program Files (x86)\Arduino\libraries\BlynkApiArduino/BlynkApiArduino.h:14:28: fatal error: Blynk/BlynkApi.h: No such file or directory
#include <Blynk/BlynkApi.h>
^
compilation terminated.
Error compiling.

@Aasim_Bin_Saleem We will ignore this thread as you have started at least one other.

Just one thread per issue and generally bad form to pick such an old thread as libraries and other things are constantly changing.

#include <ESP8266_SoftSer.h>
#include <BlynkSimpleShieldEsp8266_SoftSer.h>

are deprecated and removed long time ago.

1 Like