Skip to content
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

Explicit dependencies #902

Open
UradaSources opened this issue Aug 16, 2024 · 1 comment
Open

Explicit dependencies #902

UradaSources opened this issue Aug 16, 2024 · 1 comment

Comments

@UradaSources
Copy link

UradaSources commented Aug 16, 2024

I spent the whole morning trying to figure out why pio couldn't find the NetworkClientSecure dependency that websocket needed. Eventually I discovered that pio was looking for dependencies for the entire project through a python preprocessor, great idea, but very annoying when you don't know.
I ended up explicitly adding the NetworkClientSecure dependency to lib_deps in platformio.ini.

lib_deps = 
	WiFi
	Networking
	NetworkClientSecure
        links2004/WebSockets@^2.5.3
...

Can you add a description field to the websocket library.json to explicitly specify the dependency?
I tried a few things, but description and lib_deps seem to behave differently

@Links2004
Copy link
Owner

Links2004 commented Sep 8, 2024

The problem with that idea is that different boards need different libraries, as a result its not possible to hard code any.
since adding one will break all the other boards.

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

No branches or pull requests

2 participants