I've recently started playing with esp32. I was searching for various WiFi.mode() options available for esp32 but I couldn't find it anywhere. Can anyone help point out the source for that information?
Thanks
The code for the ESP32 Arduino SDK WiFi class is located at
https://github.com/espressif/arduino-esp32/tree/master/libraries/WiFi/src
WiFi.h doesn't define a method for mode()
but it does inherit from WiFiGeneric.h which does have methods for mode()
and getMode()
. You can find the code for those methods in WiFiGeneric.cpp.
The mode is represented using type wifi_mode_t
, which is defined in WiFiType.h. The available options are WIFI_MODE_OFF
, WIFI_MODE_STA
, WIFI_MODE_AP
, and WIFI_MODE_APSTA
.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments