How to make the relay close for 15 minutes every 2 hours?

I now have this error, please help me :pray: :pray: :pray:

Just throwing random snippets of code into your sketch won’t work, as you’ve discovered.
The BlynkTimer object needs to be declared with an appropriate name (β€˜timer’ in this case) and this object name needs to be called in your void loop for it to do anything.
This would look like this:
timer.run();

I’d suggest that you take a step back and learn more about how SimpleTimer or it’s cousin BlynkTimer work and how to use them in your code. That way you will understand how to use timers correctly in your code and what the correct syntax and usage is.

Pete.

1 Like