@teddkn when you post code to the forum you need to place triple backticks at the beginning and end so that it displays correctly.
Triple backticks look like this:
```
I’d never use Blynk.syncAll, it’s a sledgehammer to crack a nut.
You should synchronise only the datastreams that you need the current values from.
BLYNK_CONNECTED runs once when Blynk is connected, and again if there are subsequent re-connections.
If what you are trying to achieve is to retrieve the datastream values from the server when your device boots-up then it would have been helpful if you’d stated that at the beginning.
I suggest you read this for more info…
Pete.