How to control channel using esp_wifi_80211_tx
Posted: Wed Sep 26, 2018 2:20 pm
Hello,
I am trying to send beacon frames using the new esp_wifi_80211_tx API. In order to do so, I configure the ESP32 in Station mode:
Does anyone know if configuring the channel field of wifi_sta_config_t will allow to send the frame on the specified channel ?
I am trying to send beacon frames using the new esp_wifi_80211_tx API. In order to do so, I configure the ESP32 in Station mode:
Code: Select all
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
tcpip_adapter_init();
ESP_ERROR_CHECK(esp_event_loop_init(event_handler, NULL));
ESP_ERROR_CHECK(esp_wifi_init(&cfg));
ESP_ERROR_CHECK(esp_wifi_set_storage(WIFI_STORAGE_RAM));;
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
ESP_ERROR_CHECK(esp_wifi_start());
ESP_ERROR_CHECK(esp_wifi_set_ps(WIFI_PS_NONE));