Skip to content

Bundled AsyncUDP has invalid library.json #2836

Closed
@andig

Description

@andig

I'm trying a cross-build for esp8266 and esp32 both. I need to use ESPAsyncUDP.

In order to have the esp32 build NOT use the ESPAsyncUDP but the built-in AsyncUDP, I've set lib_compat_mode=strict.

[env:esp32]
platform=espressif32
# use stage version for added SPIFFS support
#platform=https://github.com/platformio/platform-espressif32.git
board=featheresp32
framework=arduino
lib_compat_mode=strict
lib_ldf_mode=deep
lib_deps=
    ${common.lib_deps}
    ESP Async WebServer@^1.2
#    https://github.com/me-no-dev/ESPAsyncWebServer
    https://github.com/me-no-dev/AsyncTCP
    AsyncUDP
    SPIFFS
    FS

Problem is that now the AsyncUDP is ignored according to the verbose build:

LDF MODES: FINDER(deep) COMPATIBILITY(strict)
Platform incompatible library /Users/andig/htdocs/SimpleEVSE-WiFi/.piolibdeps/ESPAsyncTCP_ID305
Platform incompatible library /Users/andig/htdocs/SimpleEVSE-WiFi/.piolibdeps/ESPAsyncUDP_ID359
Platform incompatible library /Users/andig/htdocs/SimpleEVSE-WiFi/.piolibdeps/MFRC522_ID63
Platform incompatible library /Users/andig/.platformio/packages/framework-arduinoespressif32/libraries/AsyncUDP

Looking at the platform directory I see that libraries/AsyncUDP contains this library.json:

{
"name":"AsyncUDP",
"description":"Asynchronous UDP Library for ESP32",
"keywords":"async,udp,server,client,multicast,broadcast",
"authors":
{
    "name": "Hristo Gochkov",
    "maintainer": true
},
"repository":
{
    "type": "git",
    "url": "https://github.com/me-no-dev/ESPAsyncUDP.git"
},
"frameworks": "arduino",
"platforms":"espressif"
}

This seems wrong twice- I assume the platform should be "espressif32" and wrapped inside an array or the library.json removed altogether. The latter would limit confusion as it still points to the ESPAsyncUDP repo.

Btw, frameworks should also be an array?

Refs platformio/platform-espressif32#186

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions