Merge pull request #6088 from s-hadinger/fix_wemo

Fix WeMo emulation for 1G echo and 2G echo dot (#6086)
This commit is contained in:
Theo Arends 2019-07-13 16:50:19 +02:00 committed by GitHub
commit 7e20579f7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

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

View File

@ -35,7 +35,8 @@ bool udp_response_mutex = false; // M-Search response mutex to control r
* UPNP/SSDP search targets
\*********************************************************************************************/
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 SSDPSEARCH_ALL[] PROGMEM = "ssdpsearch: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)) {
char type[24];
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)
strcpy_P(type, UPNP_ROOTDEVICE);
}