Update to 2.0.1
This commit is contained in:
30
main/boards/esp32s3-smart-speaker/wifi_manager.h
Normal file
30
main/boards/esp32s3-smart-speaker/wifi_manager.h
Normal file
@@ -0,0 +1,30 @@
|
||||
|
||||
#ifndef WIFI_MANAGER_H
|
||||
#define WIFI_MANAGER_H
|
||||
|
||||
#include <string>
|
||||
|
||||
class WifiManager {
|
||||
public:
|
||||
static WifiManager& GetInstance();
|
||||
|
||||
// 初始化WiFi系统
|
||||
bool Initialize();
|
||||
|
||||
// WiFi配置方法
|
||||
void SetDefaultCredentials();
|
||||
void ConfigureWifiSettings();
|
||||
|
||||
// 检查是否已初始化
|
||||
bool IsInitialized() const { return initialized_; }
|
||||
|
||||
private:
|
||||
WifiManager() = default;
|
||||
~WifiManager() = default;
|
||||
WifiManager(const WifiManager&) = delete;
|
||||
WifiManager& operator=(const WifiManager&) = delete;
|
||||
|
||||
bool initialized_ = false;
|
||||
};
|
||||
|
||||
#endif // WIFI_MANAGER_H
|
||||
Reference in New Issue
Block a user