BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

BLYNK_CONNECTED (Get last input value when connecting to server)

Program that increases the counter value by 1
The program works normally.
I just want to remember the last counter value when I reconnect to the server.
I think I should use the BLYNK_CONNECTED command
Can you help me?

[Unformatted code removed by moderator]

Please edit your post to add triple backticks at the beginning and end of your code so that iot displays correctly.
Triple backticks look like this:
```

Edited to add…
@ggkim - you’ve re-visited the forum, since I posted this, but you haven’t taken the opportunity to edit your post as requested, so I’ve removed your unformatted code.
If you still require assistance with this then please edit your original post and insert your correctly formatted code.

Pete.

@ggkim: I’d suggest to try like this:

1 Like

Store count into a virtual pin.
And at start , just do a Vsync and store the value pin into the count variable.

Thank you for your help.

1 Like