 // device specifics
 #include "WirelessConfig.h"
 #include "SensorConfig.h"
+#include "ESP8266WebServer.h"
 
 #define TRANSMIT_INTERVAL_SECONDS 30
 #define MILLIS_IN_SECOND 1000

};

ESP8266WiFiGenericClass wifi;

#ifdef USE_CERTS
// if certs are used the following must be defined in WirelessConfig.h


int counter = 0;
char macAddress[] = "00:00:00:00:00:00";


char tempMessage[MAX_MESSAGE_SIZE];
char floatBuffer[10];
float currentTemp = 0;
float currentHumidity = 0;
int lightValue = 0;
void provideMetrics() {
  snprintf(tempMessage, MAX_MESSAGE_SIZE, "plant_humidity %s\n",
             dtostrf(currentHumidity, 4, 2, floatBuffer));
  String ptr = tempMessage;
  snprintf(tempMessage, MAX_MESSAGE_SIZE, "plant_temperature %s\n",
           dtostrf(currentTemp,4, 2, floatBuffer));
  ptr+= tempMessage;
  snprintf(tempMessage, MAX_MESSAGE_SIZE, "plant_light %d\n", lightValue);
  ptr+= tempMessage;

  server.send(200, "text/plain", ptr);
}

void setup() {
  delay(1000);
