   Serial.begin(115200);
   // Serial.setDebugOutput(true);
 
+  monitorCursor = 0;
+
   WiFi.mode(WIFI_AP_STA);
   WiFi.softAPConfig(apIP, apIP, netMsk);
   WiFi.softAP(ssid);

  dnsServer.processNextRequest();
  server.handleClient();

  updateSensorData(monitorData);
  Serial.print("monitorData[monitorCursor].celsius:" );
  Serial.println(monitorData[monitorCursor].celsius);
  delay(10000);
}


  Serial.println(monitorCursor);

  monitor_t* now = &monitorData[monitorCursor];
  now->timestamp = millis();
  getTemperature(&now->celsius, &now->fahrenheit);

  if(++monitorCursor > MONITOR_POINTS)
    monitorCursor = 0;
}

void printMonitorEntry(monitor_t m, String* buf) {
