 
 //------------------------------------------------------------------------------
 void handle_thresholds(RestRequest *request, EthernetClient *client) {
-  char content[128] = { '\0' };
-  char buffer[128] = { '\0' };
+  reset_buffers();
   strcat(content, "{");
   sprintf_int_field(buffer, true, "light", sensorThresholds.light);
   strcat(content, buffer);  

SensorData sensorData;
SensorThresholds sensorThresholds;


/******************************************************************************
 * Main Arduino Subroutines

 
  update_status(); 
  
}

//------------------------------------------------------------------------------
void reset_buffers() {
  content[0] = '\0';
  buffer[0] = '\0';
}

//------------------------------------------------------------------------------
