Installing libraries doesn’t involve cutting and pasting text into files. You cut and paste the files.
If you installed the latest Blynk libraries you don’t need anything from an “Arduino page” as Blynk have embedded SimpleTimer in their own library and renamed it BlynkTimer.
@Mario_Alexandru please post your code and the compile messages that you’re getting.
When you post the code be sure to put triple backticks at the beginning and end of your code.
Triple backticks look like this:
```
Thank you !!! Look i have this error !!! Maybe you can help me !!!
In file included from C:\Users\flp\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:17:0,
from C:\Users\flp\Documents\Arduino\libraries\Blynk\src/BlynkApiArduino.h:14,
from C:\Users\flp\Documents\Arduino\libraries\Blynk\src/BlynkSimpleEsp8266.h:24,
from C:\Users\flp\Documents\Arduino\eee\eee.ino:3:
C:\Users\flp\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkTimer.h:36:21: error: redefinition of 'class BlynkTimer'
#define SimpleTimer BlynkTimer
^
C:\Users\flp\Documents\Arduino\libraries\SimpleTimer-1.0.0/SimpleTimer.h:10:7: note: in expansion of macro 'SimpleTimer'
class SimpleTimer {
^
C:\Users\flp\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkTimer.h:36:21: error: previous definition of 'class BlynkTimer'
#define SimpleTimer BlynkTimer
^
C:\Users\flp\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkTimer.h:41:7: note: in expansion of macro 'SimpleTimer'
class SimpleTimer {
^
exit status 1
Error compiling for board WeMos D1 R1.
Yes i make this before and work the code only SimpleTimer but the relay working nonstop … the relay dont turn offf oder on and my pump watter working nonstop and i dont want this …
i try all this what you tell me but dont working i have the same error like up …i change de v4 …but not work…
only time when work the code ist when i remove #include <SimpleTimer.h> but if i delete the comand dont switch on off my relay…i dont know . please somebody help me oder have another idee why dont work ???
I succeeded To repair the program … was from SimplerTimer library … i installed manuall and then worked …but i have a problem i use a arduino D1 with wifi board and i put the pin from relay by D13 how i write im program… but my relay dont switch on oder off… he stay off all time and i don’t understand why? What i make false?
As @khoih has already pointed-out, you should’t really be using the SimpleTimer library. Instead you should use BlynkTimer, which is built-in to the BlynkSimpleEsp8266.h library.
The Blynk version of the timer is better because it fixes a bug with the first timer that is created, it allows more timer instances for each timer object, and it has code built-in that prevents flooding of the Blynk server.
Thanks forr all tips … i fix the error and was from from relay i must to change the pin Vcc to 3.3v and my pin was to 5v… and the pin who switch on off was D2 for relay … the code was good but i dont have so much experience… was my first project !
@sharath2110 please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```
@sharath2110 I’ve deleted your posts in this topic, as you didn’t edit your unformatted code in your first post, instead you re-posted the code again - but used the incorrect characters when formatting it, so it still didn’t display correctly.
Let me explain again how to post code to this forum…
First of all, you put the triple backticks before your block of code - on a separate line, then again after the block of code - once again on a separate line.
Triple backticks are not required for normal text, but can be useful when posting things like error messages.
Triple backticks look like this:
```
If you can’t find the correct symbol on your keyboard then copy/paste the characxtyers that I’ve provided.
When you do format the code correctly it looks much different, so you’ll lnow whne you have done it correctly.
This is unformatted code…
#define BLYNK_PRINT Serial #include <SPI.h> #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h>
and this is the same code formatted with triple backticks…
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
As you can see, the backticks are invisible, and the code looks different.
Also, it’s not advisable to publish your auth code to the forum, as it allows anyone to control your project.