ct-Open-Source / Basecamp

An Arduino library to ease the use of the ESP32 in IoT projects
GNU General Public License v3.0
253 stars 48 forks source link

Start servers only in setup mode #23

Closed Dirk007 closed 6 years ago

Dirk007 commented 6 years ago

NOTE: This PR is based on https://github.com/merlinschumacher/Basecamp/pull/22 and only includes https://github.com/merlinschumacher/Basecamp/commit/04868ba2e5a77f6f60091a3982ef4d5a58d42231 additionally.

The web and dns servers do not need to be started in normal / productive mode because at the end, they won't work as the device is felt asleep after pins have been read out. Even if the final software, using the ESP, should not set the esp to deep sleep, it makes not too much sense to have the webserver running outside setup mode.