Skip to content

Commit

Permalink
Merge pull request #6088 from s-hadinger/fix_wemo
Browse files Browse the repository at this point in the history
Fix WeMo emulation for 1G echo and 2G echo dot (#6086)
  • Loading branch information
arendst authored Jul 13, 2019
2 parents 583e10f + 02ee16c commit 7e20579
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions sonoff/_changelog.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion sonoff/support_udp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion sonoff/xdrv_21_wemo.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7e20579

Please sign in to comment.