arduino-esp8266-alexa-wemo-switch icon indicating copy to clipboard operation
arduino-esp8266-alexa-wemo-switch copied to clipboard

Echo Plus (2. Gen) discovery Problem

Open JanB97 opened this issue 7 years ago • 1 comments

I had problems discovering my WeMos D1 Mini with Alexa. After reading a bit through some Fauxmo Issues I found something that was different and seems to work there. I had to change from this: String response = "HTTP/1.1 200 OK\r\n" "CACHE-CONTROL: max-age=86400\r\n" "DATE: Fri, 15 Apr 2016 04:56:29 GMT\r\n" "EXT:\r\n" "LOCATION: http://" + String(s) + ":80/setup.xml\r\n" "OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01\r\n" "01-NLS: b9200ebb-736d-4b93-bf03-835149d13983\r\n" "SERVER: Unspecified, UPnP/1.0, Unspecified\r\n" "ST: urn:Belkin:device:\r\n" "USN: uuid:" + persistent_uuid + "::urn:Belkin:device:\r\n" "X-User-Agent: redsonic\r\n\r\n";

to this: String response = "HTTP/1.1 200 OK\r\n" "CACHE-CONTROL: max-age=86400\r\n" "DATE: Fri, 15 Apr 2016 04:56:29 GMT\r\n" "EXT:\r\n" "LOCATION: http://" + String(s) + ":80/setup.xml\r\n" "OPT: "http://schemas.upnp.org/upnp/1/0/"; ns=01\r\n" "01-NLS: b9200ebb-736d-4b93-bf03-835149d13983\r\n" "SERVER: Unspecified, UPnP/1.0, Unspecified\r\n" "ST: ssdp:all\r\n" "USN: uuid:" + persistent_uuid + "::upnp:rootdevice\r\n" "X-User-Agent: redsonic\r\n\r\n";

My device is discovering fine now, maybe this helps someone.

Btw thank you for the awesome work and I am sorry if this is the wrong place for this. :)

JanB97 avatar Jan 03 '18 21:01 JanB97

what file is this in?

ATXdesigns avatar Apr 10 '18 20:04 ATXdesigns