ESP32 WiFi Data Rate

Can the ESP32 Wifi Data Rate be set to a fixed speed with Arduino?

If it's not in here API Reference - ESP32 - — ESP-IDF Programming Guide latest documentation (espressif.com), no.

Thanks for your reply... I found this, but I don't know how to get it to work in Arduino... I can't find any Arduino examples that set the data rate for Wifi...

esp_err_t esp_wifi_config_80211_tx_rate (wifi_interface_tifx, wifi_phy_rate_trate )

...

enum wifi_phy_rate_t

WiFi PHY rate encodings.

Values:

WIFI_PHY_RATE_1M_L = 0x00

1 Mbps with long preamble

WIFI_PHY_RATE_2M_L = 0x01

2 Mbps with long preamble...

Yea, it takes a bit of practice and figuring to use the ESP32's API in the Arduino IDE.