mirror of
https://github.com/esphome/esphome.git
synced 2025-09-27 23:52:28 +01:00
Rename WEBSERVER_PORT define to USE_WEBSERVER_PORT (#3102)
This commit is contained in:
@@ -128,7 +128,7 @@ void ESP32ImprovComponent::loop() {
|
||||
std::vector<std::string> urls = {ESPHOME_MY_LINK};
|
||||
#ifdef USE_WEBSERVER
|
||||
auto ip = wifi::global_wifi_component->wifi_sta_ip();
|
||||
std::string webserver_url = "http://" + ip.str() + ":" + to_string(WEBSERVER_PORT);
|
||||
std::string webserver_url = "http://" + ip.str() + ":" + to_string(USE_WEBSERVER_PORT);
|
||||
urls.push_back(webserver_url);
|
||||
#endif
|
||||
std::vector<uint8_t> data = improv::build_rpc_response(improv::WIFI_SETTINGS, urls);
|
||||
|
Reference in New Issue
Block a user