Error with Blynk library in Arduino IDE

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.

What can I do?
Thanks!

Federico

Did you read this bit at the beginning of the sketch…

Required libraries:
WiFiNINA|
ArduinoOTA|
ArduinoHttpClient|
Timer5

Please also update the WiFi module firmware, if needed

Pete.

Hi @PeteKnight
I tried to add
WiFiNINA, ArduinoOTA, ArduinoHttpClient and Timer5 (I found TimerFive and Timer5), without success.

I upgraded WIFI firmware of Arduino UNO WIFI Rev2, but I did not help.

The issue is always the same.
#include error is about ConfigMode.h file.

What can I try?
Thanks!

Okay, I just looked at the Hardware Compatibility List and it says…

  • Arduino UNO WiFi Rev.2 (use the example for MKR WiFi 1010)

That’s NOT they same example sketch as the Edgent_MKR1010 sketch that you are using.

I think you should be using this example…

Pete,

Edgent is not supported on Uno WiFi.

Hi all,
Thanks for your suggestions!

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!

11:25:22.067 -> [759] Connecting to FRITZ!Box
11:25:34.847 -> [13528] Connecting to FRITZ!Box
11:25:35.487 -> [14138] IP: 192.168.178.119
11:25:35.523 -> [14139] 
11:25:35.523 ->     ___  __          __
11:25:35.570 ->    / _ )/ /_ _____  / /__
11:25:35.570 ->   / _  / / // / _ \/  '_/
11:25:35.623 ->  /____/_/\_, /_//_/_/\_\
11:25:35.623 ->         /___/ v0.6.1 on Arduino UNO WiFi Rev2
11:25:35.674 -> 
11:25:35.674 -> [14270] Connecting to blynk.cloud:80
11:25:35.719 -> [14369] Ready (ping: 25ms).

Thanks for your help!

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.

Pete.