class WiFiMulti' has no member named 'setAllowOpenAP' #11272
-
BoardESP32-S3 Device Descriptionm5pagerS3 Hardware Configurationno Versionlatest stable Release (if not listed below) IDE NameArduino IDS Operating Systemmacos Flash frequency40 PSRAM enabledyes Upload speed115200 Description/EPDWifi.h:121:11: error: 'class WiFiMulti' has no member named 'setAllowOpenAP' Sketch#include <WiFi.h>
#include <WiFiMulti.h>
...
void WiFi_enable() {
WiFi.mode(WIFI_STA); // client mode
WiFi.disconnect();
WiFi.setHostname(c_ProgName.c_str());
WiFimulti.setAllowOpenAP(true);
WiFi_multAdd();
} Debug Message
Other Steps to ReproduceNo response I have checked existing issues, online documentation and the Troubleshooting Guide
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Works for me; likely an environmental problem. Make sure the compiler is using the WiFiMulti.h inside the esp32 directory, not an Arduino version (preferences->show verbose output during compile). If you installed manually, make sure you have run get.exe. |
Beta Was this translation helpful? Give feedback.
-
which library is that. I have used Arduino_MultiWiFi. after deleting it, I've used WiFiMulti_Generic, but also no success. |
Beta Was this translation helpful? Give feedback.
-
WiFiMulti is part of the arduino-esp32 base. You don't need to install any additional library, and actually need to uninstall any other WiFiMulti.h. |
Beta Was this translation helpful? Give feedback.
-
no success Error: my platformio.ini within vcode:
|
Beta Was this translation helpful? Give feedback.
-
If I click on go to definition, I get the following info: |
Beta Was this translation helpful? Give feedback.
-
Remove anything from your lib directory that is included in the platform libraries- WiFi, WiFiMulti and HTTPClient. Your environment seems damaged, and I can't know what you did to get there. You may need to wipe out the .pio directory and start over. The WiFiMulti in esp32 still has the old info from esp8266 (@SuGlider ) |
Beta Was this translation helpful? Give feedback.
-
I have removed platformlib and all in .pio. But it installs the old esp8266 version. in my plattformio.ini: The chip on the board is: ESP32_S3R8 |
Beta Was this translation helpful? Give feedback.
-
If you had properly filled out the template information you would have saved us both a lot of time. Add this to your platformio.ini: |
Beta Was this translation helpful? Give feedback.
If you had properly filled out the template information you would have saved us both a lot of time. Add this to your platformio.ini:
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip