WiFi APSTA Mode with WIFI_PROTOCOL_LR on STA only
Posted: Tue Nov 12, 2024 7:05 am
Hello,
I'm trying to enable provisioning of an ESP32-S3 over WiFi AP mode from a phone, to enable the user to configure the device to connect to another ESP32 device in LR mode.
However, it seems that as soon as add `WIFI_PROTOCOL_LR` to `ÈSP_IF_WIFI_STA`, the device is no longer visible as an AP to standard devices.
Is there any way to allow a standard device to connect to an ESP32-S3 as an AP from a standard device, and then allow the ESP32 to scan for and connect to another ESP device in LR mode (I'm aware I can do it via BLE provisioning, but I also want the WiFi AP available for wifi provisioning and other Local API calls.
I'm trying to enable provisioning of an ESP32-S3 over WiFi AP mode from a phone, to enable the user to configure the device to connect to another ESP32 device in LR mode.
However, it seems that as soon as add `WIFI_PROTOCOL_LR` to `ÈSP_IF_WIFI_STA`, the device is no longer visible as an AP to standard devices.
Code: Select all
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_APSTA));
ESP_ERROR_CHECK(esp_wifi_set_protocol(ESP_IF_WIFI_STA, WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N | WIFI_PROTOCOL_LR));
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config));
ESP_ERROR_CHECK(esp_wifi_start());