diff --git a/src/wifi.cpp b/src/wifi.cpp index db7900b..ebfe861 100644 --- a/src/wifi.cpp +++ b/src/wifi.cpp @@ -13,6 +13,7 @@ // ToDo: check if https://github.com/me-no-dev/ESPAsyncWebServer/ becomes available #include "hardware.h" +#include "sound.h" #include "wifi.h" @@ -93,17 +94,42 @@ void Wifi::loop() { client.flush(); String s; - if (req == "/") - { + if (req == "/") { IPAddress ip = WiFi.localIP(); String ipStr = String(ip[0]) + '.' + String(ip[1]) + '.' + String(ip[2]) + '.' + String(ip[3]); - s = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n\r\nHello from ESP32 at "; - s += ipStr; - s += "\r\n\r\n"; + s = "HTTP/1.1 200 OK\r\n" + "Content-Type: text/html\r\n" + "\r\n" + "\r\n" + "\r\n"; + s += "