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

  Serial.println(monitorCursor);

  monitor_t* now = &monitorData[monitorCursor];
  if(++monitorCursor >= MONITOR_POINTS)
    monitorCursor = 0;

  now->timestamp = millis();
  getTemperature(&now->celsius, &now->fahrenheit);
}

void printMonitorEntry(monitor_t m, String* buf) {

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

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

