mirror of
https://github.com/esphome/esphome.git
synced 2025-11-18 07:45:56 +00:00
Merge branch 'integration' into memory_api
This commit is contained in:
@@ -114,12 +114,6 @@ class EthernetComponent : public Component {
|
|||||||
/// @brief Set arbitratry PHY registers from config.
|
/// @brief Set arbitratry PHY registers from config.
|
||||||
void write_phy_register_(esp_eth_mac_t *mac, PHYRegister register_data);
|
void write_phy_register_(esp_eth_mac_t *mac, PHYRegister register_data);
|
||||||
|
|
||||||
private:
|
|
||||||
// Stores a pointer to a string literal (static storage duration).
|
|
||||||
// ONLY set from Python-generated code with string literals - never dynamic strings.
|
|
||||||
const char *use_address_{""};
|
|
||||||
|
|
||||||
protected:
|
|
||||||
#ifdef USE_ETHERNET_SPI
|
#ifdef USE_ETHERNET_SPI
|
||||||
uint8_t clk_pin_;
|
uint8_t clk_pin_;
|
||||||
uint8_t miso_pin_;
|
uint8_t miso_pin_;
|
||||||
@@ -163,6 +157,11 @@ class EthernetComponent : public Component {
|
|||||||
esp_eth_handle_t eth_handle_;
|
esp_eth_handle_t eth_handle_;
|
||||||
esp_eth_phy_t *phy_{nullptr};
|
esp_eth_phy_t *phy_{nullptr};
|
||||||
optional<std::array<uint8_t, 6>> fixed_mac_;
|
optional<std::array<uint8_t, 6>> fixed_mac_;
|
||||||
|
|
||||||
|
private:
|
||||||
|
// Stores a pointer to a string literal (static storage duration).
|
||||||
|
// ONLY set from Python-generated code with string literals - never dynamic strings.
|
||||||
|
const char *use_address_{""};
|
||||||
};
|
};
|
||||||
|
|
||||||
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
|
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
|
||||||
|
|||||||
@@ -393,12 +393,6 @@ class WiFiComponent : public Component {
|
|||||||
void wifi_scan_done_callback_();
|
void wifi_scan_done_callback_();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
|
||||||
// Stores a pointer to a string literal (static storage duration).
|
|
||||||
// ONLY set from Python-generated code with string literals - never dynamic strings.
|
|
||||||
const char *use_address_{""};
|
|
||||||
|
|
||||||
protected:
|
|
||||||
FixedVector<WiFiAP> sta_;
|
FixedVector<WiFiAP> sta_;
|
||||||
std::vector<WiFiSTAPriority> sta_priorities_;
|
std::vector<WiFiSTAPriority> sta_priorities_;
|
||||||
wifi_scan_vector_t<WiFiScanResult> scan_result_;
|
wifi_scan_vector_t<WiFiScanResult> scan_result_;
|
||||||
@@ -450,6 +444,11 @@ class WiFiComponent : public Component {
|
|||||||
// Pointers at the end (naturally aligned)
|
// Pointers at the end (naturally aligned)
|
||||||
Trigger<> *connect_trigger_{new Trigger<>()};
|
Trigger<> *connect_trigger_{new Trigger<>()};
|
||||||
Trigger<> *disconnect_trigger_{new Trigger<>()};
|
Trigger<> *disconnect_trigger_{new Trigger<>()};
|
||||||
|
|
||||||
|
private:
|
||||||
|
// Stores a pointer to a string literal (static storage duration).
|
||||||
|
// ONLY set from Python-generated code with string literals - never dynamic strings.
|
||||||
|
const char *use_address_{""};
|
||||||
};
|
};
|
||||||
|
|
||||||
extern WiFiComponent *global_wifi_component; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
extern WiFiComponent *global_wifi_component; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)
|
||||||
|
|||||||
Reference in New Issue
Block a user