Skip to content

Bundled AsyncUDP has invalid library.json #2836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andig opened this issue May 28, 2019 · 0 comments · Fixed by #2837
Closed

Bundled AsyncUDP has invalid library.json #2836

andig opened this issue May 28, 2019 · 0 comments · Fixed by #2837

Comments

@andig
Copy link
Contributor

andig commented May 28, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant