By reading the documentation and searching the forum for solutions
http://docs.blynk.cc/#blynk-firmware-connection-management
C++ Blynk - Code Examples for Basic Tasks (Work in Progress)