Need help with syncing Virtual Pins after a reboot

Pete,

I was referencing this link. I have tried the BLYNK_CONNECTED() callback function with no luck,

Where in the code should I put the BLYNK_CONNECTED() function?