Hey Everyone,
Running into a very weird issue. I cannot compile any Blynk Edgent sketches (even the basic edgent example with a Template ID and Template Name put in without getting the following error: #error “Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME”
^~~~~
Now, these sketches will compile fine on my desktop, but refuse to compile on my laptop. I’ve previously successfully compiled sketches on this laptop but I’m at a loss. The only change made is that I recently updated to the newest Blynk library (1.3.0) but I have updated on both the laptop and the desktop and only the laptop has errors.
Any steps to identify the issue? I’m at a loss on first steps and any help would be appreciated.
Have you actually inserted the two lines of firmware configuration into the sketch, and ensured that these aren’t commented out?
What board are you using, and board type are you choosing when you compile?
Is this the same on moth machines?
If you’re using an ESP8266 or ESP32 based board do you have the same core files installed on both machines?
Are you getting any other compiler messages or warnings before you see this message? (If you post compiler output then remember to use triple backticks).
I fired up the Arduino IDE on my desktop today and it turned out I had an update available for my ESP32 boards and some other misc libraries.
After the updates completed, I can no longer compile an edgent sketch of any sort on this machine either, getting the following error (which is the same error I get on my laptop):
In file included from c:\Users\Corey.HOTCHSDC\Documents\Arduino\libraries\Blynk\src/BlynkApiArduino.h:14,
from c:\Users\Corey.HOTCHSDC\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp32_SSL.h:21,
from C:\Users\Corey.HOTCHSDC\Documents\Arduino\ESP32_Edgent_ZoneCommandRev2\BlynkEdgent.h:8,
from C:\Users\Corey.HOTCHSDC\Documents\Arduino\ESP32_Edgent_ZoneCommandRev2\ESP32_Edgent_ZoneCommandRev2.ino:16:
c:\Users\Corey.HOTCHSDC\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:39:6: error: #error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
#error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
^~~~~
exit status 1
Compilation error: exit status 1
I DO have a BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME specified in the sketch and the error is the same from a fresh Edgent example sketch with those inputted to a previously working sketch that now will no longer compile.
I’m going to mess around and see if going to an older Blynk library version helps. I’m not sure how to install an older version of the ESP32 board configuration file but I’ll see if I can’t try that as well.
As for your other question:
ESP32 Dev Module is my selected board.
So I just uninstalled and reinstalled the newest Blynk library to confirm the issue.
With 1.3.0 the I cannot get either the example Edgent sketch (with BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME filled in) nor my previously successfully compiling Edgent based sketch to compile without getting the error mentioned in my first post.
Both sketches however compile fine if I switch back to 1.2.0, the issue does appear to lie in using the newest version of the Blynk library.
Thanks for checking.
I have the following:
Arduino IDE 2.1.1
ESP 2.0.11 by Espressif
Blynk 1.3.0
And I get the following error, no compiler warnings:
In file included from c:\Users\Corey.HOTCHSDC\Documents\Arduino\libraries\Blynk\src/BlynkApiArduino.h:14,
from c:\Users\Corey.HOTCHSDC\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp32_SSL.h:21,
from C:\Users\Corey.HOTCHSDC\Documents\Arduino\Edgent_ESP32_ZoneCommandRev3\BlynkEdgent.h:8,
from C:\Users\Corey.HOTCHSDC\Documents\Arduino\Edgent_ESP32_ZoneCommandRev3\Edgent_ESP32_ZoneCommandRev3.ino:16:
c:\Users\Corey.HOTCHSDC\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:39:6: error: #error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
#error "Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME"
^~~~~
exit status 1
Compilation error: exit status 1
If I “downgrade” to Blynk 1.2.0 the same sketch compiles fine.
I stared at those so many times confirming they were “correct” and somehow missed that. Combined with copy-pasting my template names and ID’s from my previous sketches… that was the issue.
You can mark this solved and I’ll go and wash the egg off my face.
I thought it was something simple like that, which is why I talked about copy/pasting those two lines of firmware configuration directly from the web console into your sketch.
In file included from c:\Users\ASUS\Documents\Arduino\libraries\Blynk\src/Blynk.h:14,
from C:\Users\ASUS\Desktop\sketch_PROJE\sketch_PROJE.ino:1:
c:\Users\ASUS\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:39:6: error: #error “Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME”
39 | #error “Please specify your BLYNK_TEMPLATE_ID and BLYNK_TEMPLATE_NAME”
| ^~~~~
exit status 1
Compilation error: exit status 1
I get such a warning.
ESP 8266 Module is my selected board
Blynk library 1.3.2
Arduıno IDE 2.3.3
I would be grateful if you could help me, my project has been interrupted.