set power safe mode

This commit is contained in:
Terrence
2024-11-15 23:07:20 +08:00
parent 58de3852c5
commit 15891f5840
11 changed files with 20 additions and 6 deletions

View File

@@ -114,3 +114,8 @@ std::string WifiBoard::GetBoardJson() {
board_json += "\"mac\":\"" + SystemInfo::GetMacAddress() + "\"}";
return board_json;
}
void WifiBoard::SetPowerSaveMode(bool enabled) {
auto& wifi_station = WifiStation::GetInstance();
wifi_station.SetPowerSaveMode(enabled);
}