2#if defined(USE_WIFI_CONNECT_STATE_LISTENERS) && defined(USE_SENSOR)
StringRef is a reference to a string owned by something else.
void publish_state(float state)
Publish a new state to the front-end.
void add_connect_state_listener(WiFiConnectStateListener *listener)
Add a listener for WiFi connection state changes.
int32_t get_wifi_channel()
void on_wifi_connect_state(StringRef ssid, std::span< const uint8_t, 6 > bssid) override
void dump_config() override
ESPHOME_LOG_TAG(TAG, "wifi_info")
WiFiComponent * global_wifi_component
bool mac_address_is_valid(const uint8_t *mac)
Check if the MAC address is not all zeros or all ones.