Know the state of the connection to blynk server

i want to get store information if i´am connected to blynk server or not . for example if ´i´m connected the value of this “state ==1” else “state ==0”

if (Blynk.connected()) { 
state = 1;
} else {
state = 0;
}
2 Likes