Hello,
The ESP32 on Arduino was updated to version 3.1.0 and now I have problems with the WIFI library, this is for the moment
This example generates problems and does not compile
Is this happening to anyone else?
Any suggestions?
Thank you very much
The ESP32 on Arduino was updated to version 3.1.0 and now I have problems with the WIFI library, this is for the moment
This example generates problems and does not compile
#Region Project Attributes
#AutoFlushLogs: True
#CheckArrayBounds: True
#StackBufferSize: 600
#End Region
'Ctrl+Click to open the C code folder: ide://run?File=%WINDIR%\System32\explorer.exe&Args=%PROJECT%\Objects\Src
Sub Process_Globals
Public Serial1 As Serial
Private wifi As ESP8266WiFi
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
Conecta_Wifi(0)
End Sub
Sub Conecta_Wifi(Nada As Byte)
If wifi.Connect2("xxxxx", "xxxxx") Then
Log("Conectado a la WIFI")
Log("Mi IP es :",wifi.LocalIp)
Else
Log("Intentanto conectar a Red Wifi")
CallSubPlus("Conecta_Wifi",5000,0)
End If
End Sub
Is this happening to anyone else?
Any suggestions?
Thank you very much
"C:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp-x32\\2405/bin/xtensa-esp32-elf-g++" -MMD -c "@C:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.3-466a392a\\esp32/flags/cpp_flags" -w -Os -Werror=return-type -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=dio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=0,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=0 -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.3-466a392a\\esp32/flags/defines" "-IZ:\\Desarrollo\\LUPATRONIC\\PUERTAS RAPIDAS\\VERSION 4_01\\PROGRAMA B4R\\TEST WIFI\\TEST WIFI\\Objects\\src" -iprefix "C:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.3-466a392a\\esp32/include/" "@C:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.3-466a392a\\esp32/flags/includes" "-IC:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.3-466a392a\\esp32/dio_qspi/include" "-IC:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.1.0-RC1\\cores\\esp32" "-IC:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.1.0-RC1\\variants\\esp32" "-IC:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.1.0-RC1\\libraries\\WiFi\\src" "-IC:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.1.0-RC1\\libraries\\Network\\src" "-IC:\\Users\\gtvpi\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.1.0-RC1\\libraries\\NetworkClientSecure\\src" "@C:\\Users\\gtvpi\\AppData\\Local\\Temp\\arduino\\sketches\\0EEFBCBEBD889E95B3301B38F1E793EC/build_opt.h" "@C:\\Users\\gtvpi\\AppData\\Local\\Temp\\arduino\\sketches\\0EEFBCBEBD889E95B3301B38F1E793EC/file_opts" "C:\\Users\\gtvpi\\AppData\\Local\\Temp\\arduino\\sketches\\0EEFBCBEBD889E95B3301B38F1E793EC\\sketch\\BufferedWiFiClient.cpp" -o "C:\\Users\\gtvpi\\AppData\\Local\\Temp\\arduino\\sketches\\0EEFBCBEBD889E95B3301B38F1E793EC\\sketch\\BufferedWiFiClient.cpp.o"
In file included from Z:\Desarrollo\LUPATRONIC\PUERTAS RAPIDAS\VERSION 4_01\PROGRAMA B4R\TEST WIFI\TEST WIFI\Objects\src\B4RDefines.h:25,
from Z:\Desarrollo\LUPATRONIC\PUERTAS RAPIDAS\VERSION 4_01\PROGRAMA B4R\TEST WIFI\TEST WIFI\Objects\src\b4r_main.cpp:1:
Z:\Desarrollo\LUPATRONIC\PUERTAS RAPIDAS\VERSION 4_01\PROGRAMA B4R\TEST WIFI\TEST WIFI\Objects\src\rESP8266WiFi.h:101:44: error: cannot declare field 'B4R::WiFiSocket::client' to be of abstract type 'B4R::BufferedWiFiClient'
101 | BufferedWiFiClient client;
| ^~~~~~
Z:\Desarrollo\LUPATRONIC\PUERTAS RAPIDAS\VERSION 4_01\PROGRAMA B4R\TEST WIFI\TEST WIFI\Objects\src\rESP8266WiFi.h:67:15: note: because the following virtual functions are pure within 'B4R::BufferedWiFiClient':
67 | class BufferedWiFiClient : public Client {
| ^~~~~~~~~~~~~~~~~~
In file included from C:\Users\gtvpi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Arduino.h:197,
from Z:\Desarrollo\LUPATRONIC\PUERTAS RAPIDAS\VERSION 4_01\PROGRAMA B4R\TEST WIFI\TEST WIFI\Objects\src\B4RDefines.h:8:
C:\Users\gtvpi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Client.h:29:15: note: 'virtual int Client::connect(IPAddress, uint16_t, int32_t)'
29 | virtual int connect(IPAddress ip, uint16_t port, int32_t timeout) = 0;
| ^~~~~~~
C:\Users\gtvpi\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.1.0-RC1\cores\esp32/Client.h:31:15: note: 'virtual int Client::connect(const char*, uint16_t, int32_t)'
31 | virtual int connect(const char *host, uint16_t port, int32_t timeout) = 0;
| ^~~~~~~
Z:\Desarrollo\LUPATRONIC\PUERTAS RAPIDAS\VERSION 4_01\PROGRAMA B4R\TEST WIFI\TEST WIFI\Objects\src\rESP8266WiFi.h:142:44: error: cannot declare field 'B4R::WiFiSSLSocket::client' to be of abstract type 'B4R::BufferedWiFiClient'
142 | BufferedWiFiClient client;
| ^~~~~~
In file included from Z:\Desarrollo\LUPATRONIC\PUERTAS RAPIDAS\VERSION 4_01\PROGRAMA B4R\TEST WIFI\TEST WIFI\Objects\src\B4RDefines.h:25,
from Z:\Desarrollo\LUPATRONIC\PUERTAS RAPIDAS\VERSION 4_01\PROGRAMA B4R\TEST WIFI\TEST WIFI\Objects\src\B4RArduino.cpp:1:
Z:\Desarrollo\LUPATRONIC\PUERTAS RAPIDAS\VERSION 4_01\PROGRAMA B4R\TEST WIFI\TEST WIFI\Objects\src\rESP8266WiFi.h:101:44: error: cannot declare field 'B4R::WiFiSocket::client' to be of abstract type 'B4R::BufferedWiFiClient'
101 | BufferedWiFiClient client;
| ^~~~~~
Z:\Desarrollo\LUPATRONIC\PUERTAS RAPIDAS\VERSION 4_01\PROGRAMA B4R\TEST WIFI\TEST WIFI\Objects\src\rESP8266WiFi.h:67:15: note: because the following virtual functions are pure within 'B4R::BufferedWiFiClient':
67 | class BufferedWiFiClient : public Client {