From 0d7b156c41d7ac626dff0dac0ddd6f67d1ee4824 Mon Sep 17 00:00:00 2001 From: MG-5 Date: Fri, 29 Mar 2024 17:12:07 +0100 Subject: [PATCH] Disable SoftAP --- main/wifi/Wireless.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/wifi/Wireless.cxx b/main/wifi/Wireless.cxx index 2db72a4..78b4fe6 100644 --- a/main/wifi/Wireless.cxx +++ b/main/wifi/Wireless.cxx @@ -22,7 +22,7 @@ void Wireless::taskMain(void *) init(); configureStation(); - configureSoftAp(); + // configureSoftAp(); startWifi(); while (true) @@ -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)); } //--------------------------------------------------------------------------------------------------