 // This #include statement was automatically added by the Spark IDE.
 #include "tentacle-particle.h"
 
-/*#define server "tentacle.octoblu.com"
-#define port 80*/
-
-
-IPAddress server(54,186,61,91);
+#define server "tentacle.octoblu.com"
 #define port 80
+
+
+IPAddress localServer(192, 168, 0, 104);
+#define localPort 8111
 
 static const char uuid[]  = "ff12c403-04c7-4e63-9073-2e3b1f8e4450";
 static const char token[] = "28d2c24dfa0a5289799a345e683d570880a3bc41";
 
 TCPClient conn;
+
+bool hasConnectedToServer = false;
+bool hasAuthenticated = false;
 
 TentacleArduino tentacle;
 Pseudopod pseudopod(conn, conn, tentacle);

void readData() {

  while (conn.available()) {
    Serial.println(F("Received message"));
    Serial.flush();

    if(pseudopod.readMessage() == TentacleMessageTopic_action) {

  Serial.println(WiFi.subnetMask());
  Serial.println(WiFi.gatewayIP());
  Serial.println(WiFi.SSID());

}
