   // debugging...
   //strcpy(eagle_data, "0:05  120.0  110.0  12.0  159.0  100.0  110.0  ON  OFF  ");
   //postToPhant();
+  //data_index = 0;
+  //eagle_data[data_index] = '\0';
 }
 
 void loop () {

    }
  }

  // Delays allow the ESP8266 to perform critical tasks
  // defined outside of the sketch. These tasks include
  // setting up, and maintaining, a WiFi connection.
  delay(100);

  while (Serial.available()) {
    char c = Serial.read();



  phant.add("ambient_t", dht.readTemperature(true));

  // Now connect to data.sparkfun.com, and post our data:
  WiFiClient client;

