B4R Question Compiling error since updating rESP8266WiFi library to V1.40

bdunkleysmith

Active Member
Licensed User
Since updating rESP8266WiFi library to V1.40 I receive the error shown below when compiling an existing project which previously complied without error.

I have confirmed I have update ESP8266 to V2.5.2 and ESP32 to V1.0.2. I have confirmed that the updated (V1.40) rESP8266WiFi library files have been updated in the internal libraries directory.

B4X:
"C:\\Users\\Bryon\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\xtensa-lx106-elf-gcc\\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-IC:\\Users\\Bryon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/include" "-IC:\\Users\\Bryon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/lwip2/include" "-IC:\\Users\\Bryon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\\Users\\Public\\DOCUME~1\\Bryon\\SCOREB~1\\Arduino\\Arduino\\PIPWIF~3\\Objects\\bin/core" -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10809 -DARDUINO_ESP8266_ESP13 -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_ESP13\"" -DFLASHMODE_DIO -DESP8266 "-IC:\\Users\\Bryon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2\\cores\\esp8266" "-IC:\\Users\\Bryon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2\\variants\\ESPDuino" "-IC:\\Program Files (x86)\\Arduino\\libraries\\LiquidCrystal\\src" "-IC:\\Users\\Bryon\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2\\libraries\\ESP8266WiFi\\src" "C:\\Users\\Public\\DOCUME~1\\Bryon\\SCOREB~1\\Arduino\\Arduino\\PIPWIF~3\\Objects\\bin\\sketch\\B4RArduino.cpp" -o "C:\\Users\\Public\\DOCUME~1\\Bryon\\SCOREB~1\\Arduino\\Arduino\\PIPWIF~3\\Objects\\bin\\sketch\\B4RArduino.cpp.o"

In file included from C:\Users\Public\DOCUME~1\Bryon\SCOREB~1\Arduino\Arduino\PIPWIF~3\Objects\bin\sketch\B4RDefines.h:29:0,
                 from C:\Users\Public\DOCUME~1\Bryon\SCOREB~1\Arduino\Arduino\PIPWIF~3\Objects\bin\sketch\AsyncStreams.cpp:1:
rESP8266WiFi.h:100:23: error: cannot declare field 'B4R::WiFiSocket::client' to be of abstract type 'B4R::BufferedWiFiClient'
    BufferedWiFiClient client;
What have I done wrong or still need to do so my code will compile without error using the new version of rESP8266WiFi?
 

bdunkleysmith

Active Member
Licensed User
From these references Problem building project with rESP8266Wifi and Compiling rESP8266Wifi Library it seems I should downgrade ESP8266 to V2.4.2 to overcome this compilation error, but after doing that the problem persists.

Any other suggestions on how to get my previously functional project using rESP8266WiFi back on track?

Note that even creating a new project:

B4X:
#Region Project Attributes
    #AutoFlushLogs: True
    #CheckArrayBounds: True
    #StackBufferSize: 300
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'Public variables can be accessed from all modules.
    Public Serial1 As Serial
End Sub

Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
End Sub
and selecting the rESP8266WiFi library results in a series compilation errors beginning with:

B4X:
In file included from C:\Users\Bryon\DOCUME~1\Objects\bin\sketch\B4RDefines.h:25:0,
                 from C:\Users\Bryon\DOCUME~1\Objects\bin\sketch\rESP8266WiFi.cpp:1:
 
Last edited:

bdunkleysmith

Active Member
Licensed User
I read the comment "It depends on the latest versions of ESP8266 and ESP32 SDKs." literally and so updated ESP8266 to V2.5.2, however the problem is resolved by installing V2.5.0.
 
Top