32 bool getPassword(
const std::string& ssid, std::string& password)
override;
35 void setPassword(
const std::string& ssid, roo::string_view password)
override;
41 roo_prefs::Collection collection_;
42 roo_prefs::Bool is_interface_enabled_;
43 roo_prefs::String default_ssid_;
Store implementation backed by roo_prefs (ESP32 Arduino preferences).
bool getIsInterfaceEnabled() override
Returns whether the Wi-Fi interface is enabled.
void setPassword(const std::string &ssid, roo::string_view password) override
Stores a password for an SSID.
bool getPassword(const std::string &ssid, std::string &password) override
Retrieves a stored password for an SSID.
void clearPassword(const std::string &ssid) override
Clears a stored password for an SSID.
void begin()
Initializes the preferences store (no-op placeholder).
void setIsInterfaceEnabled(bool enabled) override
Sets whether the Wi-Fi interface is enabled.
void clearDefaultSSID() override
Clears the default SSID.
ArduinoPreferencesStore()
void setDefaultSSID(const std::string &ssid) override
Sets the default SSID.
std::string getDefaultSSID() override
Returns the default SSID, if any.
Abstraction for persistently storing Wi-Fi controller data.