 }
 
 void connectToServer() {
+  hasAuthenticated = false;
+
   Serial.println(F("Connecting to the server."));
   Serial.flush();
 

    Serial.print(configSize);
    Serial.print(F(" bytes written while broadcasting pins"));
  }

  Spark.process();
}


}

void connectToLocalServer() {
  hasAuthenticated = false;
  Serial.println(F("Connecting to local server."));
  Serial.flush();

