Skip to content

Commit

Permalink
Disable SoftAP
Browse files Browse the repository at this point in the history
  • Loading branch information
MG-5 committed Mar 29, 2024
1 parent 94c0665 commit 0d7b156
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main/wifi/Wireless.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void Wireless::taskMain(void *)

init();
configureStation();
configureSoftAp();
// configureSoftAp();
startWifi();

while (true)
Expand Down Expand Up @@ -61,7 +61,8 @@ void Wireless::init()
ESP_ERROR_CHECK(esp_event_handler_instance_register(IP_EVENT, IP_EVENT_STA_GOT_IP,
&Wireless::eventHandler, nullptr, nullptr));

ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_APSTA));
// ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_APSTA));
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE));
}
//--------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 0d7b156

Please sign in to comment.