BlynkTimer for Blynk 2

Do we still use BlynkTimer timer; to carry out our functions? As I am getting “BlynkTimer does not name a type” error

Yes
BlynkTimer
Still works

There is an issue with BlynkTimer in the Edgent examples.
If you give your Blynk timer object the name of timer then you’ll get a compilation error about re-declaration, but that’s easily fixed by calling it something like myTimer.

The error you’re getting is probably because you haven’t included an appropriate Blynk library, but that’s only a guess as you haven’t bothered to share any details.

Pete.

1 Like