Skip to content

Set strict libCompatMode in library.json #191

@Lenart12

Description

@Lenart12

Platform

ESP32

IDE / Tooling

PlatformIO

What happened?

See here platformio/platformio-core#5171

Stack Trace

In file included from .pio/libdeps/esp32dev/RPAsyncTCP/src/SyncClient.h:14,
                 from .pio/libdeps/esp32dev/RPAsyncTCP/src/SyncClient.cpp:6:
.pio/libdeps/esp32dev/RPAsyncTCP/src/async_config.h:9:25: error: 'MBED_CONF_LWIP_TCP_MSS' was not declared in this scope
   #define TCP_MSS       MBED_CONF_LWIP_TCP_MSS        //(1460)
                         ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/esp32dev/RPAsyncTCP/src/SyncClient.h:40:34: note: in expansion of macro 'TCP_MSS'
     SyncClient(size_t txBufLen = TCP_MSS);
                                  ^~~~~~~
.pio/libdeps/esp32dev/RPAsyncTCP/src/async_config.h:9:25: note: suggested alternative: 'CONFIG_LWIP_TCP_MSS'
   #define TCP_MSS       MBED_CONF_LWIP_TCP_MSS        //(1460)
                         ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/esp32dev/RPAsyncTCP/src/SyncClient.h:40:34: note: in expansion of macro 'TCP_MSS'
     SyncClient(size_t txBufLen = TCP_MSS);
                                  ^~~~~~~
.pio/libdeps/esp32dev/RPAsyncTCP/src/async_config.h:9:25: error: 'MBED_CONF_LWIP_TCP_MSS' was not declared in this scope
   #define TCP_MSS       MBED_CONF_LWIP_TCP_MSS        //(1460)
                         ^~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/esp32dev/RPAsyncTCP/src/SyncClient.h:41:55: note: in expansion of macro 'TCP_MSS'
     SyncClient(AsyncClient *client, size_t txBufLen = TCP_MSS);

Minimal Reproductible Example (MRE)

Include this library inside another library with strict mode

I confirm that:

  • I have read the documentation.
  • I have searched for similar discussions.
  • I have searched for similar issues.
  • I have looked at the examples.
  • I have upgraded to the lasted version of ESPAsyncWebServer (and AsyncTCP for ESP32).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions