mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
[wifi] Inline the trivial WiFiScanResult accessors (#18613)
This commit is contained in:
@@ -2396,14 +2396,6 @@ bool WiFiScanResult::matches(const WiFiAP &config) const {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
bool WiFiScanResult::get_matches() const { return this->matches_; }
|
||||
void WiFiScanResult::set_matches(bool matches) { this->matches_ = matches; }
|
||||
const bssid_t &WiFiScanResult::get_bssid() const { return this->bssid_; }
|
||||
uint8_t WiFiScanResult::get_channel() const { return this->channel_; }
|
||||
int8_t WiFiScanResult::get_rssi() const { return this->rssi_; }
|
||||
bool WiFiScanResult::get_with_auth() const { return this->with_auth_; }
|
||||
bool WiFiScanResult::get_is_hidden() const { return this->is_hidden_; }
|
||||
|
||||
bool WiFiScanResult::operator==(const WiFiScanResult &rhs) const { return this->bssid_ == rhs.bssid_; }
|
||||
|
||||
void WiFiComponent::clear_roaming_state_() {
|
||||
|
||||
@@ -319,14 +319,14 @@ class WiFiScanResult {
|
||||
|
||||
bool matches(const WiFiAP &config) const;
|
||||
|
||||
bool get_matches() const;
|
||||
void set_matches(bool matches);
|
||||
const bssid_t &get_bssid() const;
|
||||
bool get_matches() const { return this->matches_; }
|
||||
void set_matches(bool matches) { this->matches_ = matches; }
|
||||
const bssid_t &get_bssid() const { return this->bssid_; }
|
||||
StringRef get_ssid() const { return this->ssid_.ref(); }
|
||||
uint8_t get_channel() const;
|
||||
int8_t get_rssi() const;
|
||||
bool get_with_auth() const;
|
||||
bool get_is_hidden() const;
|
||||
uint8_t get_channel() const { return this->channel_; }
|
||||
int8_t get_rssi() const { return this->rssi_; }
|
||||
bool get_with_auth() const { return this->with_auth_; }
|
||||
bool get_is_hidden() const { return this->is_hidden_; }
|
||||
int8_t get_priority() const { return priority_; }
|
||||
void set_priority(int8_t priority) { priority_ = priority; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user