vintlabs / fauxmoESP

Add voice control of your ESP32 and ESP8266 devices using Amazon Alexa
MIT License
375 stars 70 forks source link

Redirect feature #193

Open lamerjack opened 2 years ago

lamerjack commented 2 years ago

With gen3 devices is mandatory to use port 80... so i have to use a different port for my webserver for example port 8080. with this mod if add after the line: fauxmo.setPort(80); // This is required for gen3 devices

this one fauxmo.setRedirect(8080); //redirect everything not found to port 8080 all calls to fauxmoesp that is not processed will be redirected to port 8080

pvint commented 2 years ago

This looks good, and is a great idea!

I'll try to do a test tonight or tomorrow and merge it.

Thanks!

lamerjack commented 2 years ago

Sorry i found a error in file src/templates.h line 43 correct is: ""

jodovaljow commented 1 month ago

I think that the best solution is using redirect HTTP status code and Location header

https://developer.mozilla.org/en-US/docs/Web/HTTP/Redirections