1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 15:18:16 +00:00

include cpp files as well

This commit is contained in:
Tomasz Duda 2024-08-13 16:41:15 +02:00
parent 7c1844b332
commit 49b931357e
8 changed files with 16 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#include "wifi_component.h" #include "wifi_component.h"
#ifdef USE_WIFI
#include <cinttypes> #include <cinttypes>
#include <map> #include <map>
@ -856,3 +857,4 @@ WiFiComponent *global_wifi_component; // NOLINT(cppcoreguidelines-avoid-non-con
} // namespace wifi } // namespace wifi
} // namespace esphome } // namespace esphome
#endif

View File

@ -1,5 +1,6 @@
#include "wifi_component.h" #include "wifi_component.h"
#ifdef USE_WIFI
#ifdef USE_ESP32_FRAMEWORK_ARDUINO #ifdef USE_ESP32_FRAMEWORK_ARDUINO
#include <esp_netif.h> #include <esp_netif.h>
@ -802,3 +803,4 @@ network::IPAddress WiFiComponent::wifi_dns_ip_(int num) { return network::IPAddr
} // namespace esphome } // namespace esphome
#endif // USE_ESP32_FRAMEWORK_ARDUINO #endif // USE_ESP32_FRAMEWORK_ARDUINO
#endif

View File

@ -1,6 +1,7 @@
#include "wifi_component.h" #include "wifi_component.h"
#include "esphome/core/defines.h" #include "esphome/core/defines.h"
#ifdef USE_WIFI
#ifdef USE_ESP8266 #ifdef USE_ESP8266
#include <user_interface.h> #include <user_interface.h>
@ -834,3 +835,4 @@ void WiFiComponent::wifi_loop_() {}
} // namespace esphome } // namespace esphome
#endif #endif
#endif

View File

@ -1,5 +1,6 @@
#include "wifi_component.h" #include "wifi_component.h"
#ifdef USE_WIFI
#ifdef USE_ESP_IDF #ifdef USE_ESP_IDF
#include <esp_event.h> #include <esp_event.h>
@ -1010,3 +1011,4 @@ network::IPAddress WiFiComponent::wifi_dns_ip_(int num) {
} // namespace esphome } // namespace esphome
#endif // USE_ESP_IDF #endif // USE_ESP_IDF
#endif

View File

@ -1,5 +1,6 @@
#include "wifi_component.h" #include "wifi_component.h"
#ifdef USE_WIFI
#ifdef USE_LIBRETINY #ifdef USE_LIBRETINY
#include <utility> #include <utility>
@ -468,3 +469,4 @@ void WiFiComponent::wifi_loop_() {}
} // namespace esphome } // namespace esphome
#endif // USE_LIBRETINY #endif // USE_LIBRETINY
#endif

View File

@ -1,6 +1,7 @@
#include "wifi_component.h" #include "wifi_component.h"
#ifdef USE_WIFI
#ifdef USE_RP2040 #ifdef USE_RP2040
#include "lwip/dns.h" #include "lwip/dns.h"
@ -218,3 +219,4 @@ void WiFiComponent::wifi_pre_setup_() {}
} // namespace esphome } // namespace esphome
#endif #endif
#endif

View File

@ -1,4 +1,5 @@
#include "wifi_info_text_sensor.h" #include "wifi_info_text_sensor.h"
#ifdef USE_WIFI
#include "esphome/core/log.h" #include "esphome/core/log.h"
namespace esphome { namespace esphome {
@ -15,3 +16,4 @@ void DNSAddressWifiInfo::dump_config() { LOG_TEXT_SENSOR("", "WifiInfo DNS Addre
} // namespace wifi_info } // namespace wifi_info
} // namespace esphome } // namespace esphome
#endif

View File

@ -1,4 +1,5 @@
#include "wifi_signal_sensor.h" #include "wifi_signal_sensor.h"
#ifdef USE_WIFI
#include "esphome/core/log.h" #include "esphome/core/log.h"
namespace esphome { namespace esphome {
@ -10,3 +11,4 @@ void WiFiSignalSensor::dump_config() { LOG_SENSOR("", "WiFi Signal", this); }
} // namespace wifi_signal } // namespace wifi_signal
} // namespace esphome } // namespace esphome
#endif