vintlabs / fauxmoESP

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

Disable fauxmo does not disable internal web server #247

Open riban-bw opened 1 year ago

riban-bw commented 1 year ago

Calling fauxmo.enable(true) will start the internal webserver which binds to the TCP port. Calling fauxmo.enable(false) does not stop the web browser and hence leaves the TCP port bound. It is not possible to run a WiFi Manager that serves a configuration portal after starting fauxmo which makes the configuration of an embedded device challenging.

A simple fix would be to append

else {
        if (_server)
            _server->end();
    }

to fauxmoESP.cpp.