Move the HTTP server code to a new mode_pull module

This commit is contained in:
2021-01-29 11:01:07 +01:00
parent 932e3d5d52
commit 3d249d2e05
5 changed files with 298 additions and 102 deletions

View File

@@ -30,11 +30,19 @@
#define WIFI_SSID "YourWiFiName"
#define WIFI_PASS "YourWiFiPass"
// The mDNS hostname you want this station to be visible as. This should be
// different for each station you install (e.g. if you want to measure the
// temperature and humidity of each room separately)
// The system name will be the name your station is available as. This
// should be different for each station you install (e.g. if you want to
// measure the temperature and humidity of each room separately)
//
// If mDNS is enabled (ie. in HTTP pull mode), this will be the advertised
// hostname.
//
// If MQTT is enabled, this will be the MQTT client ID.
#define SYSTEM_NAME "internal-hostname"
// The mode this system should run in. See consts.h for the available values.
#define SYSTEM_MODE MODE_PULL
// If you have a DHT temperature+humidity sensor of this type will be used,
// remove the #undef line and uncomment one of DHT11 or DHT22. You also have
// to define the PIN your DHT sensors data (usually marked as DAT) is