ESPHome  2024.5.4
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes
esphome::wifi::WiFiComponent Class Reference

This component is responsible for managing the ESP WiFi interface. More...

#include <wifi_component.h>

Inheritance diagram for esphome::wifi::WiFiComponent:
esphome::Component

Public Member Functions

 WiFiComponent ()
 Construct a WiFiComponent. More...
 
void set_sta (const WiFiAP &ap)
 
void add_sta (const WiFiAP &ap)
 
void clear_sta ()
 
void set_ap (const WiFiAP &ap)
 Setup an Access Point that should be created if no connection to a station can be made. More...
 
WiFiAP get_ap ()
 
void enable ()
 
void disable ()
 
bool is_disabled ()
 
void start_scanning ()
 
void check_scanning_finished ()
 
void start_connecting (const WiFiAP &ap, bool two)
 
void set_fast_connect (bool fast_connect)
 
void set_ap_timeout (uint32_t ap_timeout)
 
void check_connecting_finished ()
 
void retry_connect ()
 
bool can_proceed () override
 
void set_reboot_timeout (uint32_t reboot_timeout)
 
bool is_connected ()
 
void set_power_save_mode (WiFiPowerSaveMode power_save)
 
void set_output_power (float output_power)
 
void set_passive_scan (bool passive)
 
void save_wifi_sta (const std::string &ssid, const std::string &password)
 
void setup () override
 Setup WiFi interface. More...
 
void start ()
 
void dump_config () override
 
float get_setup_priority () const override
 WIFI setup_priority. More...
 
float get_loop_priority () const override
 
void loop () override
 Reconnect WiFi if required. More...
 
bool has_sta () const
 
bool has_ap () const
 
void set_btm (bool btm)
 
void set_rrm (bool rrm)
 
network::IPAddress get_dns_address (int num)
 
network::IPAddresses get_ip_addresses ()
 
std::string get_use_address () const
 
void set_use_address (const std::string &use_address)
 
const std::vector< WiFiScanResult > & get_scan_result () const
 
network::IPAddress wifi_soft_ap_ip ()
 
bool has_sta_priority (const bssid_t &bssid)
 
float get_sta_priority (const bssid_t bssid)
 
void set_sta_priority (const bssid_t bssid, float priority)
 
network::IPAddresses wifi_sta_ip_addresses ()
 
std::string wifi_ssid ()
 
bssid_t wifi_bssid ()
 
int8_t wifi_rssi ()
 
void set_enable_on_boot (bool enable_on_boot)
 
Triggerget_connect_trigger () const
 
Triggerget_disconnect_trigger () const
 
- Public Member Functions inherited from esphome::Component
float get_actual_setup_priority () const
 
void set_setup_priority (float priority)
 
void call ()
 
virtual void on_shutdown ()
 
virtual void on_safe_shutdown ()
 
uint32_t get_component_state () const
 
virtual void mark_failed ()
 Mark this component as failed. More...
 
bool is_failed ()
 
bool is_ready ()
 
bool status_has_warning () const
 
bool status_has_error () const
 
void status_set_warning (const char *message="unspecified")
 
void status_set_error (const char *message="unspecified")
 
void status_clear_warning ()
 
void status_clear_error ()
 
void status_momentary_warning (const std::string &name, uint32_t length=5000)
 
void status_momentary_error (const std::string &name, uint32_t length=5000)
 
bool has_overridden_loop () const
 
void set_component_source (const char *source)
 Set where this component was loaded from for some debug messages. More...
 
const char * get_component_source () const
 Get the integration where this component was declared as a string. More...
 

Protected Member Functions

void setup_ap_config_ ()
 
void print_connect_params_ ()
 
void wifi_loop_ ()
 
bool wifi_mode_ (optional< bool > sta, optional< bool > ap)
 
bool wifi_sta_pre_setup_ ()
 
bool wifi_apply_output_power_ (float output_power)
 
bool wifi_apply_power_save_ ()
 
bool wifi_sta_ip_config_ (optional< ManualIP > manual_ip)
 
bool wifi_apply_hostname_ ()
 
bool wifi_sta_connect_ (const WiFiAP &ap)
 
void wifi_pre_setup_ ()
 
WiFiSTAConnectStatus wifi_sta_connect_status_ ()
 
bool wifi_scan_start_ (bool passive)
 
bool wifi_ap_ip_config_ (optional< ManualIP > manual_ip)
 
bool wifi_start_ap_ (const WiFiAP &ap)
 
bool wifi_disconnect_ ()
 
int32_t wifi_channel_ ()
 
network::IPAddress wifi_subnet_mask_ ()
 
network::IPAddress wifi_gateway_ip_ ()
 
network::IPAddress wifi_dns_ip_ (int num)
 
bool is_captive_portal_active_ ()
 
bool is_esp32_improv_active_ ()
 
void load_fast_connect_settings_ ()
 
void save_fast_connect_settings_ ()
 
void wifi_scan_done_callback_ (void *arg, STATUS status)
 
void wifi_event_callback_ (arduino_event_id_t event, arduino_event_info_t info)
 
void wifi_scan_done_callback_ ()
 
void wifi_process_event_ (IDFWiFiEvent *data)
 
void wifi_scan_result (void *env, const cyw43_ev_scan_result_t *result)
 
void wifi_event_callback_ (arduino_event_id_t event, arduino_event_info_t info)
 
void wifi_scan_done_callback_ ()
 
- Protected Member Functions inherited from esphome::Component
virtual void call_loop ()
 
virtual void call_setup ()
 
virtual void call_dump_config ()
 
void set_interval (const std::string &name, uint32_t interval, std::function< void()> &&f)
 Set an interval function with a unique name. More...
 
void set_interval (uint32_t interval, std::function< void()> &&f)
 
bool cancel_interval (const std::string &name)
 Cancel an interval function. More...
 
void set_retry (const std::string &name, uint32_t initial_wait_time, uint8_t max_attempts, std::function< RetryResult(uint8_t)> &&f, float backoff_increase_factor=1.0f)
 Set an retry function with a unique name. More...
 
void set_retry (uint32_t initial_wait_time, uint8_t max_attempts, std::function< RetryResult(uint8_t)> &&f, float backoff_increase_factor=1.0f)
 
bool cancel_retry (const std::string &name)
 Cancel a retry function. More...
 
void set_timeout (const std::string &name, uint32_t timeout, std::function< void()> &&f)
 Set a timeout function with a unique name. More...
 
void set_timeout (uint32_t timeout, std::function< void()> &&f)
 
bool cancel_timeout (const std::string &name)
 Cancel a timeout function. More...
 
void defer (const std::string &name, std::function< void()> &&f)
 Defer a callback to the next loop() call. More...
 
void defer (std::function< void()> &&f)
 Defer a callback to the next loop() call. More...
 
bool cancel_defer (const std::string &name)
 Cancel a defer callback using the specified name, name must not be empty. More...
 

Static Protected Member Functions

static std::string format_mac_addr (const uint8_t mac[6])
 
static void wifi_event_callback (System_Event_t *event)
 
static void s_wifi_scan_done_callback (void *arg, STATUS status)
 
static int s_wifi_scan_result (void *env, const cyw43_ev_scan_result_t *result)
 

Protected Attributes

std::string use_address_
 
std::vector< WiFiAPsta_
 
std::vector< WiFiSTAPrioritysta_priorities_
 
WiFiAP selected_ap_
 
bool fast_connect_ {false}
 
bool retry_hidden_ {false}
 
bool has_ap_ {false}
 
WiFiAP ap_
 
WiFiComponentState state_ {WIFI_COMPONENT_STATE_OFF}
 
bool handled_connected_state_ {false}
 
uint32_t action_started_
 
uint8_t num_retried_ {0}
 
uint32_t last_connected_ {0}
 
uint32_t reboot_timeout_ {}
 
uint32_t ap_timeout_ {}
 
WiFiPowerSaveMode power_save_ {WIFI_POWER_SAVE_NONE}
 
bool error_from_callback_ {false}
 
std::vector< WiFiScanResultscan_result_
 
bool scan_done_ {false}
 
bool ap_setup_ {false}
 
optional< float > output_power_
 
bool passive_scan_ {false}
 
ESPPreferenceObject pref_
 
ESPPreferenceObject fast_connect_pref_
 
bool has_saved_wifi_settings_ {false}
 
bool btm_ {false}
 
bool rrm_ {false}
 
bool enable_on_boot_
 
bool got_ipv4_address_ {false}
 
uint8_t num_ipv6_addresses_ {0}
 
Triggerconnect_trigger_ {new Trigger<>()}
 
Triggerdisconnect_trigger_ {new Trigger<>()}
 
- Protected Attributes inherited from esphome::Component
uint32_t component_state_ {0x0000}
 State of this component. More...
 
float setup_priority_override_ {NAN}
 
const char * component_source_ {nullptr}
 

Detailed Description

This component is responsible for managing the ESP WiFi interface.

Definition at line 193 of file wifi_component.h.

Constructor & Destructor Documentation

◆ WiFiComponent()

esphome::wifi::WiFiComponent::WiFiComponent ( )

Construct a WiFiComponent.

Definition at line 201 of file wifi_component.cpp.

Member Function Documentation

◆ add_sta()

void esphome::wifi::WiFiComponent::add_sta ( const WiFiAP ap)

Definition at line 282 of file wifi_component.cpp.

◆ can_proceed()

bool esphome::wifi::WiFiComponent::can_proceed ( )
overridevirtual

Reimplemented from esphome::Component.

Definition at line 696 of file wifi_component.cpp.

◆ check_connecting_finished()

void esphome::wifi::WiFiComponent::check_connecting_finished ( )

Definition at line 584 of file wifi_component.cpp.

◆ check_scanning_finished()

void esphome::wifi::WiFiComponent::check_scanning_finished ( )

Definition at line 467 of file wifi_component.cpp.

◆ clear_sta()

void esphome::wifi::WiFiComponent::clear_sta ( )

Definition at line 287 of file wifi_component.cpp.

◆ disable()

void esphome::wifi::WiFiComponent::disable ( )

Definition at line 448 of file wifi_component.cpp.

◆ dump_config()

void esphome::wifi::WiFiComponent::dump_config ( )
overridevirtual

Reimplemented from esphome::Component.

Definition at line 579 of file wifi_component.cpp.

◆ enable()

void esphome::wifi::WiFiComponent::enable ( )

Definition at line 438 of file wifi_component.cpp.

◆ format_mac_addr()

std::string esphome::wifi::WiFiComponent::format_mac_addr ( const uint8_t  mac[6])
staticprotected

Definition at line 711 of file wifi_component.cpp.

◆ get_ap()

WiFiAP esphome::wifi::WiFiComponent::get_ap ( )
inline

Definition at line 211 of file wifi_component.h.

◆ get_connect_trigger()

Trigger* esphome::wifi::WiFiComponent::get_connect_trigger ( ) const
inline

Definition at line 304 of file wifi_component.h.

◆ get_disconnect_trigger()

Trigger* esphome::wifi::WiFiComponent::get_disconnect_trigger ( ) const
inline

Definition at line 305 of file wifi_component.h.

◆ get_dns_address()

network::IPAddress esphome::wifi::WiFiComponent::get_dns_address ( int  num)

Definition at line 221 of file wifi_component.cpp.

◆ get_ip_addresses()

network::IPAddresses esphome::wifi::WiFiComponent::get_ip_addresses ( )

Definition at line 210 of file wifi_component.cpp.

◆ get_loop_priority()

float esphome::wifi::WiFiComponent::get_loop_priority ( ) const
overridevirtual

Reimplemented from esphome::Component.

Definition at line 278 of file wifi_component.cpp.

◆ get_scan_result()

const std::vector<WiFiScanResult>& esphome::wifi::WiFiComponent::get_scan_result ( ) const
inline

Definition at line 265 of file wifi_component.h.

◆ get_setup_priority()

float esphome::wifi::WiFiComponent::get_setup_priority ( ) const
overridevirtual

WIFI setup_priority.

Reimplemented from esphome::Component.

Definition at line 35 of file wifi_component.cpp.

◆ get_sta_priority()

float esphome::wifi::WiFiComponent::get_sta_priority ( const bssid_t  bssid)
inline

Definition at line 276 of file wifi_component.h.

◆ get_use_address()

std::string esphome::wifi::WiFiComponent::get_use_address ( ) const

Definition at line 226 of file wifi_component.cpp.

◆ has_ap()

bool esphome::wifi::WiFiComponent::has_ap ( ) const

Definition at line 203 of file wifi_component.cpp.

◆ has_sta()

bool esphome::wifi::WiFiComponent::has_sta ( ) const

Definition at line 204 of file wifi_component.cpp.

◆ has_sta_priority()

bool esphome::wifi::WiFiComponent::has_sta_priority ( const bssid_t bssid)
inline

Definition at line 269 of file wifi_component.h.

◆ is_captive_portal_active_()

bool esphome::wifi::WiFiComponent::is_captive_portal_active_ ( )
protected

Definition at line 716 of file wifi_component.cpp.

◆ is_connected()

bool esphome::wifi::WiFiComponent::is_connected ( )

Definition at line 703 of file wifi_component.cpp.

◆ is_disabled()

bool esphome::wifi::WiFiComponent::is_disabled ( )

Definition at line 458 of file wifi_component.cpp.

◆ is_esp32_improv_active_()

bool esphome::wifi::WiFiComponent::is_esp32_improv_active_ ( )
protected

Definition at line 723 of file wifi_component.cpp.

◆ load_fast_connect_settings_()

void esphome::wifi::WiFiComponent::load_fast_connect_settings_ ( )
protected

Definition at line 731 of file wifi_component.cpp.

◆ loop()

void esphome::wifi::WiFiComponent::loop ( )
overridevirtual

Reconnect WiFi if required.

Reimplemented from esphome::Component.

Definition at line 113 of file wifi_component.cpp.

◆ print_connect_params_()

void esphome::wifi::WiFiComponent::print_connect_params_ ( )
protected

Definition at line 405 of file wifi_component.cpp.

◆ retry_connect()

void esphome::wifi::WiFiComponent::retry_connect ( )

Definition at line 658 of file wifi_component.cpp.

◆ s_wifi_scan_done_callback()

void esphome::wifi::WiFiComponent::s_wifi_scan_done_callback ( void *  arg,
STATUS  status 
)
staticprotected

Definition at line 678 of file wifi_component_esp8266.cpp.

◆ s_wifi_scan_result()

int esphome::wifi::WiFiComponent::s_wifi_scan_result ( void *  env,
const cyw43_ev_scan_result_t *  result 
)
staticprotected

Definition at line 114 of file wifi_component_pico_w.cpp.

◆ save_fast_connect_settings_()

void esphome::wifi::WiFiComponent::save_fast_connect_settings_ ( )
protected

Definition at line 744 of file wifi_component.cpp.

◆ save_wifi_sta()

void esphome::wifi::WiFiComponent::save_wifi_sta ( const std::string &  ssid,
const std::string &  password 
)

Definition at line 288 of file wifi_component.cpp.

◆ set_ap()

void esphome::wifi::WiFiComponent::set_ap ( const WiFiAP ap)

Setup an Access Point that should be created if no connection to a station can be made.

This can also be used without set_sta(). Then the AP will always be active.

If both STA and AP are defined, then both will be enabled at startup, but if a connection to a station can be made, the AP will be turned off again.

Definition at line 272 of file wifi_component.cpp.

◆ set_ap_timeout()

void esphome::wifi::WiFiComponent::set_ap_timeout ( uint32_t  ap_timeout)
inline

Definition at line 221 of file wifi_component.h.

◆ set_btm()

void esphome::wifi::WiFiComponent::set_btm ( bool  btm)

Definition at line 207 of file wifi_component.cpp.

◆ set_enable_on_boot()

void esphome::wifi::WiFiComponent::set_enable_on_boot ( bool  enable_on_boot)
inline

Definition at line 302 of file wifi_component.h.

◆ set_fast_connect()

void esphome::wifi::WiFiComponent::set_fast_connect ( bool  fast_connect)

Definition at line 205 of file wifi_component.cpp.

◆ set_output_power()

void esphome::wifi::WiFiComponent::set_output_power ( float  output_power)
inline

Definition at line 234 of file wifi_component.h.

◆ set_passive_scan()

void esphome::wifi::WiFiComponent::set_passive_scan ( bool  passive)

Definition at line 709 of file wifi_component.cpp.

◆ set_power_save_mode()

void esphome::wifi::WiFiComponent::set_power_save_mode ( WiFiPowerSaveMode  power_save)

Definition at line 707 of file wifi_component.cpp.

◆ set_reboot_timeout()

void esphome::wifi::WiFiComponent::set_reboot_timeout ( uint32_t  reboot_timeout)

Definition at line 702 of file wifi_component.cpp.

◆ set_rrm()

void esphome::wifi::WiFiComponent::set_rrm ( bool  rrm)

Definition at line 208 of file wifi_component.cpp.

◆ set_sta()

void esphome::wifi::WiFiComponent::set_sta ( const WiFiAP ap)

Definition at line 283 of file wifi_component.cpp.

◆ set_sta_priority()

void esphome::wifi::WiFiComponent::set_sta_priority ( const bssid_t  bssid,
float  priority 
)
inline

Definition at line 283 of file wifi_component.h.

◆ set_use_address()

void esphome::wifi::WiFiComponent::set_use_address ( const std::string &  use_address)

Definition at line 232 of file wifi_component.cpp.

◆ setup()

void esphome::wifi::WiFiComponent::setup ( )
overridevirtual

Setup WiFi interface.

Reimplemented from esphome::Component.

Definition at line 37 of file wifi_component.cpp.

◆ setup_ap_config_()

void esphome::wifi::WiFiComponent::setup_ap_config_ ( )
protected

Definition at line 235 of file wifi_component.cpp.

◆ start()

void esphome::wifi::WiFiComponent::start ( )

Definition at line 50 of file wifi_component.cpp.

◆ start_connecting()

void esphome::wifi::WiFiComponent::start_connecting ( const WiFiAP ap,
bool  two 
)

Definition at line 302 of file wifi_component.cpp.

◆ start_scanning()

void esphome::wifi::WiFiComponent::start_scanning ( )

Definition at line 460 of file wifi_component.cpp.

◆ wifi_ap_ip_config_()

bool esphome::wifi::WiFiComponent::wifi_ap_ip_config_ ( optional< ManualIP manual_ip)
protected

Definition at line 634 of file wifi_component_esp32_arduino.cpp.

◆ wifi_apply_hostname_()

bool esphome::wifi::WiFiComponent::wifi_apply_hostname_ ( )
protected

Definition at line 179 of file wifi_component_esp32_arduino.cpp.

◆ wifi_apply_output_power_()

bool esphome::wifi::WiFiComponent::wifi_apply_output_power_ ( float  output_power)
protected

Definition at line 62 of file wifi_component_esp32_arduino.cpp.

◆ wifi_apply_power_save_()

bool esphome::wifi::WiFiComponent::wifi_apply_power_save_ ( )
protected

Definition at line 74 of file wifi_component_esp32_arduino.cpp.

◆ wifi_bssid()

bssid_t esphome::wifi::WiFiComponent::wifi_bssid ( )

Definition at line 740 of file wifi_component_esp32_arduino.cpp.

◆ wifi_channel_()

int32_t esphome::wifi::WiFiComponent::wifi_channel_ ( )
protected

Definition at line 751 of file wifi_component_esp32_arduino.cpp.

◆ wifi_disconnect_()

bool esphome::wifi::WiFiComponent::wifi_disconnect_ ( )
protected

Definition at line 738 of file wifi_component_esp32_arduino.cpp.

◆ wifi_dns_ip_()

network::IPAddress esphome::wifi::WiFiComponent::wifi_dns_ip_ ( int  num)
protected

Definition at line 754 of file wifi_component_esp32_arduino.cpp.

◆ wifi_event_callback()

void esphome::wifi::WiFiComponent::wifi_event_callback ( System_Event_t *  event)
staticprotected

Definition at line 483 of file wifi_component_esp8266.cpp.

◆ wifi_event_callback_() [1/2]

void esphome::wifi::WiFiComponent::wifi_event_callback_ ( arduino_event_id_t  event,
arduino_event_info_t  info 
)
protected

Definition at line 438 of file wifi_component_esp32_arduino.cpp.

◆ wifi_event_callback_() [2/2]

void esphome::wifi::WiFiComponent::wifi_event_callback_ ( arduino_event_id_t  event,
arduino_event_info_t  info 
)
protected

◆ wifi_gateway_ip_()

network::IPAddress esphome::wifi::WiFiComponent::wifi_gateway_ip_ ( )
protected

Definition at line 753 of file wifi_component_esp32_arduino.cpp.

◆ wifi_loop_()

void esphome::wifi::WiFiComponent::wifi_loop_ ( )
protected

Definition at line 755 of file wifi_component_esp32_arduino.cpp.

◆ wifi_mode_()

bool esphome::wifi::WiFiComponent::wifi_mode_ ( optional< bool >  sta,
optional< bool >  ap 
)
protected

Definition at line 29 of file wifi_component_esp32_arduino.cpp.

◆ wifi_pre_setup_()

void esphome::wifi::WiFiComponent::wifi_pre_setup_ ( )
protected

Definition at line 576 of file wifi_component_esp32_arduino.cpp.

◆ wifi_process_event_()

void esphome::wifi::WiFiComponent::wifi_process_event_ ( IDFWiFiEvent *  data)
protected

Definition at line 613 of file wifi_component_esp_idf.cpp.

◆ wifi_rssi()

int8_t esphome::wifi::WiFiComponent::wifi_rssi ( )

Definition at line 750 of file wifi_component_esp32_arduino.cpp.

◆ wifi_scan_done_callback_() [1/3]

void esphome::wifi::WiFiComponent::wifi_scan_done_callback_ ( void *  arg,
STATUS  status 
)
protected

Definition at line 682 of file wifi_component_esp8266.cpp.

◆ wifi_scan_done_callback_() [2/3]

void esphome::wifi::WiFiComponent::wifi_scan_done_callback_ ( )
protected

Definition at line 610 of file wifi_component_esp32_arduino.cpp.

◆ wifi_scan_done_callback_() [3/3]

void esphome::wifi::WiFiComponent::wifi_scan_done_callback_ ( )
protected

◆ wifi_scan_result()

void esphome::wifi::WiFiComponent::wifi_scan_result ( void *  env,
const cyw43_ev_scan_result_t *  result 
)
protected

Definition at line 119 of file wifi_component_pico_w.cpp.

◆ wifi_scan_start_()

bool esphome::wifi::WiFiComponent::wifi_scan_start_ ( bool  passive)
protected

Definition at line 596 of file wifi_component_esp32_arduino.cpp.

◆ wifi_soft_ap_ip()

network::IPAddress esphome::wifi::WiFiComponent::wifi_soft_ap_ip ( )

Definition at line 731 of file wifi_component_esp32_arduino.cpp.

◆ wifi_ssid()

std::string esphome::wifi::WiFiComponent::wifi_ssid ( )

Definition at line 749 of file wifi_component_esp32_arduino.cpp.

◆ wifi_sta_connect_()

bool esphome::wifi::WiFiComponent::wifi_sta_connect_ ( const WiFiAP ap)
protected

Definition at line 183 of file wifi_component_esp32_arduino.cpp.

◆ wifi_sta_connect_status_()

WiFiSTAConnectStatus esphome::wifi::WiFiComponent::wifi_sta_connect_status_ ( )
protected

Definition at line 583 of file wifi_component_esp32_arduino.cpp.

◆ wifi_sta_ip_addresses()

network::IPAddresses esphome::wifi::WiFiComponent::wifi_sta_ip_addresses ( )

Definition at line 147 of file wifi_component_esp32_arduino.cpp.

◆ wifi_sta_ip_config_()

bool esphome::wifi::WiFiComponent::wifi_sta_ip_config_ ( optional< ManualIP manual_ip)
protected

Definition at line 90 of file wifi_component_esp32_arduino.cpp.

◆ wifi_sta_pre_setup_()

bool esphome::wifi::WiFiComponent::wifi_sta_pre_setup_ ( )
protected

Definition at line 66 of file wifi_component_esp32_arduino.cpp.

◆ wifi_start_ap_()

bool esphome::wifi::WiFiComponent::wifi_start_ap_ ( const WiFiAP ap)
protected

Definition at line 692 of file wifi_component_esp32_arduino.cpp.

◆ wifi_subnet_mask_()

network::IPAddress esphome::wifi::WiFiComponent::wifi_subnet_mask_ ( )
protected

Definition at line 752 of file wifi_component_esp32_arduino.cpp.

Field Documentation

◆ action_started_

uint32_t esphome::wifi::WiFiComponent::action_started_
protected

Definition at line 380 of file wifi_component.h.

◆ ap_

WiFiAP esphome::wifi::WiFiComponent::ap_
protected

Definition at line 377 of file wifi_component.h.

◆ ap_setup_

bool esphome::wifi::WiFiComponent::ap_setup_ {false}
protected

Definition at line 389 of file wifi_component.h.

◆ ap_timeout_

uint32_t esphome::wifi::WiFiComponent::ap_timeout_ {}
protected

Definition at line 384 of file wifi_component.h.

◆ btm_

bool esphome::wifi::WiFiComponent::btm_ {false}
protected

Definition at line 396 of file wifi_component.h.

◆ connect_trigger_

Trigger* esphome::wifi::WiFiComponent::connect_trigger_ {new Trigger<>()}
protected

Definition at line 405 of file wifi_component.h.

◆ disconnect_trigger_

Trigger* esphome::wifi::WiFiComponent::disconnect_trigger_ {new Trigger<>()}
protected

Definition at line 406 of file wifi_component.h.

◆ enable_on_boot_

bool esphome::wifi::WiFiComponent::enable_on_boot_
protected

Definition at line 399 of file wifi_component.h.

◆ error_from_callback_

bool esphome::wifi::WiFiComponent::error_from_callback_ {false}
protected

Definition at line 386 of file wifi_component.h.

◆ fast_connect_

bool esphome::wifi::WiFiComponent::fast_connect_ {false}
protected

Definition at line 373 of file wifi_component.h.

◆ fast_connect_pref_

ESPPreferenceObject esphome::wifi::WiFiComponent::fast_connect_pref_
protected

Definition at line 393 of file wifi_component.h.

◆ got_ipv4_address_

bool esphome::wifi::WiFiComponent::got_ipv4_address_ {false}
protected

Definition at line 400 of file wifi_component.h.

◆ handled_connected_state_

bool esphome::wifi::WiFiComponent::handled_connected_state_ {false}
protected

Definition at line 379 of file wifi_component.h.

◆ has_ap_

bool esphome::wifi::WiFiComponent::has_ap_ {false}
protected

Definition at line 376 of file wifi_component.h.

◆ has_saved_wifi_settings_

bool esphome::wifi::WiFiComponent::has_saved_wifi_settings_ {false}
protected

Definition at line 394 of file wifi_component.h.

◆ last_connected_

uint32_t esphome::wifi::WiFiComponent::last_connected_ {0}
protected

Definition at line 382 of file wifi_component.h.

◆ num_ipv6_addresses_

uint8_t esphome::wifi::WiFiComponent::num_ipv6_addresses_ {0}
protected

Definition at line 402 of file wifi_component.h.

◆ num_retried_

uint8_t esphome::wifi::WiFiComponent::num_retried_ {0}
protected

Definition at line 381 of file wifi_component.h.

◆ output_power_

optional<float> esphome::wifi::WiFiComponent::output_power_
protected

Definition at line 390 of file wifi_component.h.

◆ passive_scan_

bool esphome::wifi::WiFiComponent::passive_scan_ {false}
protected

Definition at line 391 of file wifi_component.h.

◆ power_save_

WiFiPowerSaveMode esphome::wifi::WiFiComponent::power_save_ {WIFI_POWER_SAVE_NONE}
protected

Definition at line 385 of file wifi_component.h.

◆ pref_

ESPPreferenceObject esphome::wifi::WiFiComponent::pref_
protected

Definition at line 392 of file wifi_component.h.

◆ reboot_timeout_

uint32_t esphome::wifi::WiFiComponent::reboot_timeout_ {}
protected

Definition at line 383 of file wifi_component.h.

◆ retry_hidden_

bool esphome::wifi::WiFiComponent::retry_hidden_ {false}
protected

Definition at line 374 of file wifi_component.h.

◆ rrm_

bool esphome::wifi::WiFiComponent::rrm_ {false}
protected

Definition at line 397 of file wifi_component.h.

◆ scan_done_

bool esphome::wifi::WiFiComponent::scan_done_ {false}
protected

Definition at line 388 of file wifi_component.h.

◆ scan_result_

std::vector<WiFiScanResult> esphome::wifi::WiFiComponent::scan_result_
protected

Definition at line 387 of file wifi_component.h.

◆ selected_ap_

WiFiAP esphome::wifi::WiFiComponent::selected_ap_
protected

Definition at line 372 of file wifi_component.h.

◆ sta_

std::vector<WiFiAP> esphome::wifi::WiFiComponent::sta_
protected

Definition at line 370 of file wifi_component.h.

◆ sta_priorities_

std::vector<WiFiSTAPriority> esphome::wifi::WiFiComponent::sta_priorities_
protected

Definition at line 371 of file wifi_component.h.

◆ state_

WiFiComponentState esphome::wifi::WiFiComponent::state_ {WIFI_COMPONENT_STATE_OFF}
protected

Definition at line 378 of file wifi_component.h.

◆ use_address_

std::string esphome::wifi::WiFiComponent::use_address_
protected

Definition at line 369 of file wifi_component.h.


The documentation for this class was generated from the following files: