mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 19:42:08 +02:00
mDNS controlled by run-time variable
This commit is contained in:
parent
5f8eedbacb
commit
efdbbff916
3 changed files with 28 additions and 24 deletions
|
@ -28,15 +28,10 @@
|
|||
#error \
|
||||
"Initial setup not completed, USER_SECRETS.h is missing. Please rename the file USER_SECRETS.TEMPLATE.h to USER_SECRETS.h and fill in the required credentials. This file is ignored by version control to keep sensitive information private."
|
||||
#endif
|
||||
#include "src/devboard/mqtt/mqtt.h"
|
||||
#include "src/devboard/webserver/webserver.h"
|
||||
#include "src/devboard/wifi/wifi.h"
|
||||
|
||||
#ifdef MDNSRESPONDER
|
||||
#include <ESPmDNS.h>
|
||||
#endif // MDNSRESONDER
|
||||
|
||||
#include "src/devboard/mqtt/mqtt.h"
|
||||
|
||||
#ifdef PERIODIC_BMS_RESET_AT
|
||||
#include "src/devboard/utils/ntp_time.h"
|
||||
#endif
|
||||
|
@ -183,9 +178,9 @@ void connectivity_loop(void*) {
|
|||
init_webserver();
|
||||
}
|
||||
|
||||
#ifdef MDNSRESPONDER
|
||||
init_mDNS();
|
||||
#endif
|
||||
if (mdns_enabled) {
|
||||
init_mDNS();
|
||||
}
|
||||
|
||||
while (true) {
|
||||
START_TIME_MEASUREMENT(wifi);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue