Checks for WiFi connectivity
merged with file send recv