1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-16 06:45:48 +00:00

wifi: support 802.11k and 802.11v (#3600)

This commit is contained in:
Stijn Tintel
2022-08-17 12:10:43 +03:00
committed by GitHub
parent 5561d4eaeb
commit b4bbe3d7b5
6 changed files with 43 additions and 1 deletions

View File

@@ -219,6 +219,11 @@ class WiFiComponent : public Component {
bool has_sta() const;
bool has_ap() const;
#ifdef USE_WIFI_11KV_SUPPORT
void set_btm(bool btm);
void set_rrm(bool rrm);
#endif
network::IPAddress get_ip_address();
std::string get_use_address() const;
void set_use_address(const std::string &use_address);
@@ -327,6 +332,10 @@ class WiFiComponent : public Component {
optional<float> output_power_;
ESPPreferenceObject pref_;
bool has_saved_wifi_settings_{false};
#ifdef USE_WIFI_11KV_SUPPORT
bool btm_{false};
bool rrm_{false};
#endif
};
extern WiFiComponent *global_wifi_component; // NOLINT(cppcoreguidelines-avoid-non-const-global-variables)