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

Fatal error: BlynkEdgent.h: No such file or directory, Arduino, PlatformIO

Hi,

I am transitioning to Blynk 2.0. To start, I simply copied the Edgent example. PlatformIO and libraries are all lates versions. When I run it, I get “fatal error: BlynkEdgent.h: No such file or directory, Arduino, PlatformIO”. I have spent the last few hours troubleshooting this (also on blynk forums) with not much luck.

The only two libraries I use are Blynk and AccelStepper. Why do I get this error? It’s the same wether I use #include <BlynkEdgent.h> or #include “BlynkEdgent.h”.

Cheers,
Dimos

My platformio.ini loks like this:

[env:az-delivery-devkit-v4]
platform = espressif32
board = az-delivery-devkit-v4
framework = arduino
lib_deps =
   waspinator/AccelStepper@^1.61
   blynkkk/Blynk@^1.0.0

No sure if you figure out the solution to this error, but the BlynkEdgent is just for the ESP32. I expend some time trying to solve the same issue until I figure out where the problem was. I wish the developers would have clarified this in a better way.

UPDATE: If you load the example for the ESP32, it works. Once again, you MUST have the ESP32, any other microcontroller, good luck.

If you are using any other microcontroller, you need to follow this guide: Static AuthToken

1 Like

Thanks!

I am using the ESP32. This is my board: ESP32-DevKitC V4 Getting Started Guide — ESP-IDF Programming Guide v3.3 documentation

What have you done differently than me?

both are available

2021-06-14_130306

BlynkEdgent.h isn’t a library file within the Blynk 1.0.0 library, it’s a file within the example directory.
When you open one of the .ino files in the example in the Arduino IDE then all the other files in that folder will also load, as tabs at the top of the IDE.

In PIO, I don’t know what you need to do to get the code in this local file to be available to the main code, but that’s what you need to be focussing on.

Pete.

Peter… Thanks!

I copied the Edgenet Example folder to PlatformIO, renamed .ino to .cpp, added #include <Arduino.h> to it and it works!

Cheers,
Dimos

1 Like

he’s not peter. he’s pete

Sorry Pete :slight_smile: