   udp.begin(WiFi.localIP());
   
   broadcast((char *)"setup");
+
+  server.on("/", handleRoot);
+  server.begin();
+  Serial.println("HTTP server started");
 }
 
 void loop() {
   ArduinoOTA.handle();
   yield();
+  server.handleClient();
   if (millis() > timeout) {
     digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
     timeout = millis() + 1000;

unsigned int port = 12345;
IPAddress broadcastIp;

void broadcast(char * message) {
  udp.beginPacketMulticast(broadcastIp, port, WiFi.localIP());
  udp.write(message);
  udp.endPacket();
}

void broadcastStatus() {


  Serial.begin(115200);
  Serial.println("BasicOTA setup");
  WiFi.mode(WIFI_AP_STA);
  WiFi.begin(ssid, password);
  while (WiFi.waitForConnectResult() != WL_CONNECTED) {
    Serial.println("Connection Failed! Rebooting...");
    delay(5000);
    ESP.restart();
  }

//  IPAddress myIP = WiFi.softAPIP();
//  Serial.print("AP IP address: ");
//  Serial.println(myIP);


  // Port defaults to 8266
  // ArduinoOTA.setPort(8266);
