Serial.printf("Starting SSDP...\n");
SSDP.setSchemaURL("description.xml");
SSDP.setDeviceType("upnp:rootdevice");
// HTTP.on("/description.xml", HTTP_GET, [](AsyncWebServerRequest *request)
{
String ssdpSend = "<root xmlns=\"urn:schemas-upnp-org:device-1-0\">";
String ssdpHeader = xmlNode("major", "1");
ssdpHeader += xmlNode("minor", "0");
ssdpHeader = xmlNode("specVersion", ssdpHeader);
ssdpHeader += xmlNode("URLBase", "http://" + String(IP));
String ssdpDescription = xmlNode("deviceType", "upnp:rootdevice");
ssdpDescription += xmlNode("friendlyName", "EEE8266");
ssdpDescription += xmlNode("presentationURL", "/");
ssdpDescription += xmlNode("serialNumber", "0000000" + String(random(1000)));
ssdpDescription += xmlNode("modelName", "ESP-NOW gateway");
ssdpDescription += xmlNode("modelNumber", "firmware");
ssdpDescription += xmlNode("modelURL", "https://github.com/aZholtikov/ESP-NOW-Gateway");
ssdpDescription += xmlNode("manufacturer", "Alexey Zholtikov");
ssdpDescription += xmlNode("manufacturerURL", "https://github.com/aZholtikov");
ssdpDescription += xmlNode("UDN", "DAA26FA3-D2D4-4072-BC7A-");
ssdpDescription = xmlNode("device", ssdpDescription);
ssdpHeader += ssdpDescription;
ssdpSend += ssdpHeader;
ssdpSend += "</root>";
// request->send(200, "text/xml", ssdpSend);
};
SSDP.begin();
HTTP.begin();