Skip to content

Commit e28ef87

Browse files
author
Luc
committed
Update ESP32SSDP.cpp
add _modelDescription and update buffer size
1 parent 8c3ddb7 commit e28ef87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ESP32SSDP.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ static const char _ssdp_schema_template[] PROGMEM =
8080
"<presentationURL>%s</presentationURL>"
8181
"<serialNumber>%s</serialNumber>"
8282
"<modelName>%s</modelName>"
83+
"<modelDescription>%s</modelDescription>"
8384
"<modelNumber>%s</modelNumber>"
8485
"<modelURL>%s</modelURL>"
8586
"<manufacturer>%s</manufacturer>"
@@ -251,7 +252,7 @@ void SSDPClass::_send(ssdp_method_t method){
251252

252253
void SSDPClass::schema(WiFiClient client){
253254
IPAddress ip = localIP();
254-
char buffer[strlen_P(_ssdp_schema_template)+1];
255+
char buffer[1460];
255256
strcpy_P(buffer, _ssdp_schema_template);
256257
client.printf(buffer,
257258
ip[0], ip[1], ip[2], ip[3], _port,
@@ -260,6 +261,7 @@ void SSDPClass::schema(WiFiClient client){
260261
_presentationURL,
261262
_serialNumber,
262263
_modelName,
264+
_modelDescription,
263265
_modelNumber,
264266
_modelURL,
265267
_manufacturer,

0 commit comments

Comments
 (0)