ESPHome 2026.2.1
Loading...
Searching...
No Matches
esphome::wifi::WiFiScanResult Class Reference

#include <wifi_component.h>

Public Member Functions

 WiFiScanResult (const bssid_t &bssid, const char *ssid, size_t ssid_len, uint8_t channel, int8_t rssi, bool with_auth, bool is_hidden)
 
bool matches (const WiFiAP &config) const
 
bool get_matches () const
 
void set_matches (bool matches)
 
const bssid_tget_bssid () const
 
StringRef get_ssid () const
 
uint8_t get_channel () const
 
int8_t get_rssi () const
 
bool get_with_auth () const
 
bool get_is_hidden () const
 
int8_t get_priority () const
 
void set_priority (int8_t priority)
 
bool operator== (const WiFiScanResult &rhs) const
 

Protected Attributes

bssid_t bssid_
 
uint8_t channel_
 
int8_t rssi_
 
CompactString ssid_
 
int8_t priority_ {0}
 
bool matches_ {false}
 
bool with_auth_
 
bool is_hidden_
 

Detailed Description

Definition at line 277 of file wifi_component.h.

Constructor & Destructor Documentation

◆ WiFiScanResult()

esphome::wifi::WiFiScanResult::WiFiScanResult ( const bssid_t & bssid,
const char * ssid,
size_t ssid_len,
uint8_t channel,
int8_t rssi,
bool with_auth,
bool is_hidden )

Definition at line 2197 of file wifi_component.cpp.

Member Function Documentation

◆ get_bssid()

const bssid_t & esphome::wifi::WiFiScanResult::get_bssid ( ) const

Definition at line 2244 of file wifi_component.cpp.

◆ get_channel()

uint8_t esphome::wifi::WiFiScanResult::get_channel ( ) const

Definition at line 2245 of file wifi_component.cpp.

◆ get_is_hidden()

bool esphome::wifi::WiFiScanResult::get_is_hidden ( ) const

Definition at line 2248 of file wifi_component.cpp.

◆ get_matches()

bool esphome::wifi::WiFiScanResult::get_matches ( ) const

Definition at line 2242 of file wifi_component.cpp.

◆ get_priority()

int8_t esphome::wifi::WiFiScanResult::get_priority ( ) const
inline

Definition at line 294 of file wifi_component.h.

◆ get_rssi()

int8_t esphome::wifi::WiFiScanResult::get_rssi ( ) const

Definition at line 2246 of file wifi_component.cpp.

◆ get_ssid()

StringRef esphome::wifi::WiFiScanResult::get_ssid ( ) const
inline

Definition at line 289 of file wifi_component.h.

◆ get_with_auth()

bool esphome::wifi::WiFiScanResult::get_with_auth ( ) const

Definition at line 2247 of file wifi_component.cpp.

◆ matches()

bool esphome::wifi::WiFiScanResult::matches ( const WiFiAP & config) const

Definition at line 2205 of file wifi_component.cpp.

◆ operator==()

bool esphome::wifi::WiFiScanResult::operator== ( const WiFiScanResult & rhs) const

Definition at line 2250 of file wifi_component.cpp.

◆ set_matches()

void esphome::wifi::WiFiScanResult::set_matches ( bool matches)

Definition at line 2243 of file wifi_component.cpp.

◆ set_priority()

void esphome::wifi::WiFiScanResult::set_priority ( int8_t priority)
inline

Definition at line 295 of file wifi_component.h.

Field Documentation

◆ bssid_

bssid_t esphome::wifi::WiFiScanResult::bssid_
protected

Definition at line 300 of file wifi_component.h.

◆ channel_

uint8_t esphome::wifi::WiFiScanResult::channel_
protected

Definition at line 301 of file wifi_component.h.

◆ is_hidden_

bool esphome::wifi::WiFiScanResult::is_hidden_
protected

Definition at line 307 of file wifi_component.h.

◆ matches_

bool esphome::wifi::WiFiScanResult::matches_ {false}
protected

Definition at line 305 of file wifi_component.h.

◆ priority_

int8_t esphome::wifi::WiFiScanResult::priority_ {0}
protected

Definition at line 304 of file wifi_component.h.

◆ rssi_

int8_t esphome::wifi::WiFiScanResult::rssi_
protected

Definition at line 302 of file wifi_component.h.

◆ ssid_

CompactString esphome::wifi::WiFiScanResult::ssid_
protected

Definition at line 303 of file wifi_component.h.

◆ with_auth_

bool esphome::wifi::WiFiScanResult::with_auth_
protected

Definition at line 306 of file wifi_component.h.


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