   Serial.begin(9600);
   Serial.println("Starting up.");
   setupWifi();
-  Serial.println("wifi should be setup!");
-
   pseudopod = new Pseudopod(conn, conn);
 }
 

  Serial.print("signal strength (RSSI):");
  Serial.print(rssi);
  Serial.println(" dBm");
}

void softReset() {

}

void loop() {
  if (!conn.connected()) {
    connectToServer();
  }
  
  Serial.println("writing");
  Serial.flush();

  pins = tentacle.getValue();
  int written = pseudopod->writeStateMessage(pins);

  Serial.print(written);
  Serial.println(" bytes written.");
  Serial.print(freeMemory());
