@@ -35,6 +35,8 @@ extern "C" {
35
35
}
36
36
#include " lwip/igmp.h"
37
37
38
+ // #define DEBUG_SSDP Serial
39
+
38
40
#define SSDP_INTERVAL 1200
39
41
#define SSDP_PORT 1900
40
42
#define SSDP_METHOD_SIZE 10
@@ -70,7 +72,7 @@ const char* _ssdp_packet_template =
70
72
" CACHE-CONTROL: max-age=%u\r\n " // SSDP_INTERVAL
71
73
" SERVER: Arduino/1.0 UPNP/1.1 %s/%s\r\n " // _modelName, _modelNumber
72
74
" USN: uuid:%s\r\n " // _uuid
73
- " LOCATION: http://%u.%u.%u.%u:%u/%s\r\n " // WiFi.localIP(), _port, _shemaURL
75
+ " LOCATION: http://%u.%u.%u.%u:%u/%s\r\n " // WiFi.localIP(), _port, _schemaURL
74
76
" \r\n " ;
75
77
76
78
const char * _ssdp_schema_template =
@@ -98,6 +100,22 @@ const char* _ssdp_schema_template =
98
100
" <manufacturerURL>%s</manufacturerURL>"
99
101
" <UDN>uuid:%s</UDN>"
100
102
" </device>"
103
+ // "<iconList>"
104
+ // "<icon>"
105
+ // "<mimetype>image/png</mimetype>"
106
+ // "<height>48</height>"
107
+ // "<width>48</width>"
108
+ // "<depth>24</depth>"
109
+ // "<url>icon48.png</url>"
110
+ // "</icon>"
111
+ // "<icon>"
112
+ // "<mimetype>image/png</mimetype>"
113
+ // "<height>120</height>"
114
+ // "<width>120</width>"
115
+ // "<depth>24</depth>"
116
+ // "<url>icon120.png</url>"
117
+ // "</icon>"
118
+ // "</iconList>"
101
119
" </root>\r\n "
102
120
" \r\n " ;
103
121
@@ -154,7 +172,7 @@ void SSDPClass::begin(){
154
172
uint8_t mac[6 ];
155
173
WiFi.macAddress (mac);
156
174
uint32_t chipId = ESP.getChipId ();
157
- sprintf (_uuid, " 38323636-4558-%04X-%04X-%02X%02X%02X%02X%02X%02X " ,
175
+ sprintf (_uuid, " 38323636-4558-%04x-%04x-%02x%02x%02x%02x%02x%02x " ,
158
176
(chipId >> 16 ) & 0xFFFF , chipId & 0xFFFF ,
159
177
mac[0 ], mac[1 ], mac[2 ], mac[3 ], mac[4 ], mac[5 ]
160
178
);
0 commit comments