diff --git a/libraries/ESP8266SSDP/ESP8266SSDP.cpp b/libraries/ESP8266SSDP/ESP8266SSDP.cpp index f118fe951d..99ee9c761a 100644 --- a/libraries/ESP8266SSDP/ESP8266SSDP.cpp +++ b/libraries/ESP8266SSDP/ESP8266SSDP.cpp @@ -35,6 +35,8 @@ extern "C" { } #include "lwip/igmp.h" +//#define DEBUG_SSDP Serial + #define SSDP_INTERVAL 1200 #define SSDP_PORT 1900 #define SSDP_METHOD_SIZE 10 @@ -70,7 +72,7 @@ const char* _ssdp_packet_template = "CACHE-CONTROL: max-age=%u\r\n" // SSDP_INTERVAL "SERVER: Arduino/1.0 UPNP/1.1 %s/%s\r\n" // _modelName, _modelNumber "USN: uuid:%s\r\n" // _uuid - "LOCATION: http://%u.%u.%u.%u:%u/%s\r\n" // WiFi.localIP(), _port, _shemaURL + "LOCATION: http://%u.%u.%u.%u:%u/%s\r\n" // WiFi.localIP(), _port, _schemaURL "\r\n"; const char* _ssdp_schema_template = @@ -98,6 +100,22 @@ const char* _ssdp_schema_template = "%s" "uuid:%s" "" +// "" +// "" +// "image/png" +// "48" +// "48" +// "24" +// "icon48.png" +// "" +// "" +// "image/png" +// "120" +// "120" +// "24" +// "icon120.png" +// "" +// "" "\r\n" "\r\n"; @@ -154,7 +172,7 @@ void SSDPClass::begin(){ uint8_t mac[6]; WiFi.macAddress(mac); uint32_t chipId = ESP.getChipId(); - sprintf(_uuid, "38323636-4558-%04X-%04X-%02X%02X%02X%02X%02X%02X", + sprintf(_uuid, "38323636-4558-%04x-%04x-%02x%02x%02x%02x%02x%02x", (chipId >> 16) & 0xFFFF, chipId & 0xFFFF, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5] ); diff --git a/libraries/ESP8266SSDP/ESP8266SSDP.h b/libraries/ESP8266SSDP/ESP8266SSDP.h index aa696953bb..efaba1ac78 100644 --- a/libraries/ESP8266SSDP/ESP8266SSDP.h +++ b/libraries/ESP8266SSDP/ESP8266SSDP.h @@ -33,8 +33,6 @@ License (MIT license): #include #include -#define DEBUG_SSDP Serial - typedef enum { NONE, SEARCH,