   Serial.println("... failed to connect to Control Server.  Max attemps reached."); 
 }
 
-
+/**
+ * Construct the body of a probe sync request to the control server
+ */
 String createProbeSyncRequest(int connectionAttempts) {
   
   // TODO: Start using a proper JSON library here.  Some options could include..

 *
 *  !!! Important -- Reserved PINs !!!
 *
 *  + The Arduino WiFi sheild uses the SPI bus and other digital pins.
 *      Do not use pins 7, 10, 11, 12 or 13 in your sketch as they are in use
 *      For more details: http://arduino.cc/en/Main/ArduinoWiFiShield
 *  + Currently pin 9 is reserved for OneWire protocol communication.
 *      Use it for your OneWire devices
 *
 *
 * https://github.com/lbracken/autogarten

  
  // Initialize the probe and wifi configuration
  initProbe("autogarten_probe", "-----", 5000, "changeme");
  initWiFi("-----", "-----", false);
  
  // Add any sensors
  addSensor("light_level_1", A0, SENSOR_TYPE_ANALOG_GENERIC);
  addSensor("light_level_2", A1, SENSOR_TYPE_ANALOG_GENERIC);  
  addSensor("switch_1", 2, SENSOR_TYPE_DIGITAL_GENERIC);
  addSensor("soil_temp", oneWirePin, SENSOR_TYPE_ONEWIRE_TEMP);
  addSensor("air_temp", oneWirePin, SENSOR_TYPE_ONEWIRE_TEMP);
  
  // Add any actuators
  // TODO...  
}


void loop() {   
  delay(5000);
  
  Serial.println();
  Serial.print("Free Memory: ");
  Serial.println(memoryFree());
  
  readAnalogGenericSensor("light_level_1");
  readAnalogGenericSensor("light_level_2");
  readDigitalGenericSensor("switch_1");
  readOneWireTempSensor("soil_temp");
  readOneWireTempSensor("air_temp");
  
  //syncWithControlServer();
}




/**
 * Initialize settings and behavior for the probe
