   udp.begin(WiFi.localIP());
 
   server.on("/", handleRoot);
+  server.on("/reset", handleReset);
+
   server.begin();
   Serial.println("HTTP server started");
+
 
 }
 

  String hostname(HOSTNAME);
  hostname += String(ESP.getChipId(), HEX);
  ArduinoOTA.setHostname((const char *)hostname.c_str());

  // No authentication by default
  // ArduinoOTA.setPassword((const char *)"123");

void handleRoot() {
  String html("<head><meta http-equiv='refresh' content='5'></head><body>You are connected</><br><b>");
  html.concat(millis());
  html.concat("</b><form action='reset'><input type='submit' value='Reset'></form></body>");
  server.send(200, "text/html", html.c_str());
}

void handleReset() {
  server.send(200, "text/html", "<b>Reseting</b>");
  ESP.reset();
}
  

void broadcastStatus() {
  String message("{\"nodeid\":");
