Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/framework/ESP8266React.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
#ifdef ESP32
#include <AsyncTCP.h>
#include <WiFi.h>
#include <ESPmDNS.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#include <ESP8266mDNS.h>
#endif

#include <FeaturesService.h>
Expand Down
1 change: 1 addition & 0 deletions lib/framework/WiFiSettingsService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ void WiFiSettingsService::manageSTA() {
}
// attempt to connect to the network
WiFi.begin(_state.ssid.c_str(), _state.password.c_str());
MDNS.begin(_state.hostname.c_str());
}
}

Expand Down
8 changes: 8 additions & 0 deletions lib/framework/WiFiSettingsService.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
#include <HttpEndpoint.h>
#include <JsonUtils.h>

#ifdef ESP32
#include <WiFi.h>
#include <ESPmDNS.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#endif

#ifndef FACTORY_WIFI_SSID
#define FACTORY_WIFI_SSID ""
#endif
Expand Down