Send Value from Blynk app

Hello everyone;

I need some help please with my project.

I am sending the delay (xxx) value to my ESP8266 from Blynk app from mobile.

delay (xxx) ;

It works perfectly and I can change the delay as I wish. The problem that every time I reset the ESP8266, I must reconnect the app to the board again and set the delay. Is there any way to save the last xxx value I send even after resetting?

Thank you.

Have you tried: http://docs.blynk.cc/#blynk-main-operations-state-syncing-for-hardware ?

1 Like

And you shouldn’t be using delays in your Blynk sketch, they block the code operation and can lead to Blynk disconnections and will certainly result in non-responsiveness of the hardware to widget changes in the app.
You should look at lambda timeout timers instead.

Pete.

2 Likes

Thank you very very much. it solved my problem with your guide link. I am very beginner with Blynk and it is so interesting app.

Thank you for your replay.

No problem as I need to use Blynk once when starting the project to set some variable without needing to edit the code every time. it works perfectly now.