Configuring WiFi Channel Bandwidth in Arduino
Configuring WiFi Channel Bandwidth in Arduino
I know that with esp-idf you can change the bandwidth (20 or 40MHz) in the config. Is there any way to currently do this in Arduino IDE? I want to be able to set bandwidth to 40MHz for FTM.
Re: Configuring WiFi Channel Bandwidth in Arduino
The Arduino IDE is built on top of ESP-IDF; as long as what you want isn't decided compile-time, you should be able to use the ESP-IDF functions after including the proper headers.
Re: Configuring WiFi Channel Bandwidth in Arduino
Hi, I have the same problem: there is no way to specify a 40MHz BW in FTM initiation. Because FTM works in unassociated state, the esp_wifi_set_bandwidth API does not work.
Re: Configuring WiFi Channel Bandwidth in Arduino
#include <esp_wifi.h>
The default for ESP32's appears to be wideband on wifi.
Set HT20 after softAP setting
WiFi.softAP(ssid, password, channel);
esp_wifi_set_bandwidth(WIFI_IF_AP, WIFI_BW_HT20);
esp_wifi_set_max_tx_power(8);
Btw, be careful running ESP32's at full 20dbm power, most boards have crappy antenna with bad VSWR, the reflected power can hurt the LNA or cause other problems with the wifi.
The default for ESP32's appears to be wideband on wifi.
Set HT20 after softAP setting
WiFi.softAP(ssid, password, channel);
esp_wifi_set_bandwidth(WIFI_IF_AP, WIFI_BW_HT20);
esp_wifi_set_max_tx_power(8);
Btw, be careful running ESP32's at full 20dbm power, most boards have crappy antenna with bad VSWR, the reflected power can hurt the LNA or cause other problems with the wifi.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], PerplexityBot and 2 guests
