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

Discussion in 'B4R Questions' started by bdunkleysmith, May 22, 2019.

  1. bdunkleysmith

    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.

    Code:
    "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?
     
  2. bdunkleysmith

    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:

    Code:
    #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:

    Code:
    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: May 22, 2019
  3. Erel

    Erel Administrator Staff Member Licensed User

    You should use rESP8266WiFi v1.40 with ESP8266 SDK v2.50.

    My guess is that you haven't updated all the files. It is not enough to update the XML file.
     
  4. bdunkleysmith

    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.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice