Fix WeMo emulation for 1G echo and 2G echo dot (#6086)

This commit is contained in:
Stephan Hadinger 2019-07-13 16:31:53 +02:00
parent 0bb0f06982
commit 791e33f81a
3 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@
* Add AZ7798 automatic setting of clock display (#6034) * Add AZ7798 automatic setting of clock display (#6034)
* Add Epoch and UptimeSec to JSON messages (#6068) * Add Epoch and UptimeSec to JSON messages (#6068)
* Add support for up to 4 INA219 sensors (#6046) * Add support for up to 4 INA219 sensors (#6046)
* Fix WeMo emulation for 1G echo and 2G echo dot (#6086)
* *
* 6.6.0 20190707 * 6.6.0 20190707
* Remove support of TLS on core 2.3.0 and extent support on core 2.4.2 and up * Remove support of TLS on core 2.3.0 and extent support on core 2.4.2 and up

View File

@ -36,6 +36,7 @@ bool udp_response_mutex = false; // M-Search response mutex to control r
\*********************************************************************************************/ \*********************************************************************************************/
const char URN_BELKIN_DEVICE[] PROGMEM = "urn:belkin:device:**"; const char URN_BELKIN_DEVICE[] PROGMEM = "urn:belkin:device:**";
const char URN_BELKIN_DEVICE_CAP[] PROGMEM = "urn:Belkin:device:**";
const char UPNP_ROOTDEVICE[] PROGMEM = "upnp:rootdevice"; const char UPNP_ROOTDEVICE[] PROGMEM = "upnp:rootdevice";
const char SSDPSEARCH_ALL[] PROGMEM = "ssdpsearch:all"; const char SSDPSEARCH_ALL[] PROGMEM = "ssdpsearch:all";
const char SSDP_ALL[] PROGMEM = "ssdp:all"; const char SSDP_ALL[] PROGMEM = "ssdp:all";

View File

@ -62,7 +62,7 @@ void WemoRespondToMSearch(int echo_type)
if (PortUdp.beginPacket(udp_remote_ip, udp_remote_port)) { if (PortUdp.beginPacket(udp_remote_ip, udp_remote_port)) {
char type[24]; char type[24];
if (1 == echo_type) { // type1 echo 1g & dot 2g if (1 == echo_type) { // type1 echo 1g & dot 2g
strcpy_P(type, URN_BELKIN_DEVICE); strcpy_P(type, URN_BELKIN_DEVICE_CAP);
} else { // type2 echo 2g (echo, plus, show) } else { // type2 echo 2g (echo, plus, show)
strcpy_P(type, UPNP_ROOTDEVICE); strcpy_P(type, UPNP_ROOTDEVICE);
} }