mirror of https://github.com/arendst/Tasmota.git
Add Wemo SSDP presentationURL
Add Wemo SSDP presentationURL for easy access using Windows Networks Other Device device double click (#17084) As implemented only works when USE_UNISHOX_COMPRESSION is disabled.
This commit is contained in:
parent
16b796ccd5
commit
619c5431d7
|
@ -240,6 +240,7 @@ const char WEMO_SETUP_XML[] PROGMEM =
|
|||
"<modelNumber>3.1415</modelNumber>"
|
||||
"<UDN>uuid:{x2</UDN>"
|
||||
"<serialNumber>{x3</serialNumber>"
|
||||
"<presentationURL>http://{x4:80/</presentationURL>"
|
||||
"<binaryState>0</binaryState>"
|
||||
"<serviceList>"
|
||||
"<service>"
|
||||
|
@ -335,6 +336,9 @@ void HandleUpnpSetupWemo(void)
|
|||
setup_xml.replace("{x1", SettingsText(SET_FRIENDLYNAME1));
|
||||
setup_xml.replace("{x2", WemoUuid());
|
||||
setup_xml.replace("{x3", WemoSerialnumber());
|
||||
|
||||
setup_xml.replace("{x4", WiFi.localIP().toString());
|
||||
|
||||
WSSend(200, CT_XML, setup_xml);
|
||||
}
|
||||
|
||||
|
|
|
@ -203,6 +203,7 @@ const char WEMO_SETUP_XML[] PROGMEM =
|
|||
"<modelNumber>3.1415</modelNumber>"
|
||||
"<UDN>uuid:{x2</UDN>"
|
||||
"<serialNumber>{x3</serialNumber>"
|
||||
"<presentationURL>http://{x4:80/</presentationURL>"
|
||||
"<binaryState>0</binaryState>"
|
||||
"<serviceList>"
|
||||
"<service>"
|
||||
|
@ -396,6 +397,9 @@ private:
|
|||
setup_xml.replace("{x1", SettingsText(SET_FRIENDLYNAME1 + (_deviceId - 1)));
|
||||
setup_xml.replace("{x2", WemoUuid());
|
||||
setup_xml.replace("{x3", WemoSerialnumber());
|
||||
|
||||
setup_xml.replace("{x4", WiFi.localIP().toString());
|
||||
|
||||
InternalWSSend(200, CT_XML, setup_xml);
|
||||
#ifdef USE_EMULATION_WEMO_DEBUG
|
||||
AddLog(LOG_LEVEL_DEBUG, PSTR("WMO: Sending device #%d: %s"), _deviceId, setup_xml.c_str());
|
||||
|
|
Loading…
Reference in New Issue