     Serial.print(":");
     Serial.println(client.remotePort());
 
+    // Wait for connection
+    unsigned long start = millis();
+    while (!client.connected() && (millis() - start < 1000)) {
+      delay(5);
+    }
+
+    // Go!!!
     Blynk.startSession();
     while (client.connected()) {
       // Okay, handle Blynk protocol

      }
    }
    client.stop();
    Serial.print("Client disconnected.");
  }
}


  server.begin();
  BLYNK_LOG("Listening on port: %d", port);
}

void loop()
