Hi all,
I am started with Blynk today, but I have troubles with Blynk Library in Arduino IDE.
I am running now Arduino IDE 1.8.16 (latest version for Windows 10).
I would use Blynk 2.0 with Arduino UNO WIFI Rev2.
I downloaded Blynk library from Github page and I imported this library in Arduino IDE with success.
I tried to compile a simple exmple, like Edgent_MKR1010, but I got this error:
In file included from C:\Users\Federico\AppData\Local\Temp\arduino_modified_sketch_429395\BlynkEdgent.h:36:0, from C:\Users\Federico\AppData\Local\Temp\arduino_modified_sketch_429395\Edgent_MKR1010.ino:13:
ConfigMode.h:3:10: fatal error: utility: No such file or directory
#include <utility>
^~~~~~~~~
compilation terminated.
exit status 1
utility: No such file or directory
I searched on web, but I did not found any information about “utility” library.
I followed @PeteKnight suggestions!
I look for examples and I read “MKR1010” in “Edgent_MKR1010”, so I thought this is the right example to follow with my Arduino UNO WIFI Rev2 board!
I did a mistake!
After that I followed
but it did not worked for me, compiling errors and auth token errors.
I did some web research and I solved compling issues in this way:
First I removed installed libraries about Blynk in my Arduino IDE (Blynk and Blynk_WiFiNINA_WM).
Installed Blynk 0.6.1 manually
Installed Blynk_WiFiNINA_WM 0.6.1 manually
After that, I noted that there is a mistake in the Arduino MKR1010 example!
I replaced Blynk.begin(auth, ssid, pass);
with Blynk.begin(auth, ssid, pass, "blynk.cloud", 80);
You must change “Blynk.begin”, by default this example use blynk-cloud.com that did not accept Auth Token!
In this moment, my Arduino UNO WIFI Rev2 is online on Blynk.cloud portal!
You should be using library version 1.0.1 or later with Blynk IoT.
What compiler errors? What version of the Blynk library were these with?
The Auth Token errors would be because the old Blynk library tries to connect to the old (Legacy) servers.
You’ve worked around this by specifying the Blynk.cloud servers in your Blynk.begin statement, but this shouldn’t be necessary if you use the correct library version and have the Blynk template ID etc as the very first lines of your sketch.