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

added dependencies for ldf mode off #650

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kleini
Copy link
Collaborator

@kleini kleini commented Jan 3, 2020

No description provided.

@bodiroga
Copy link
Collaborator

bodiroga commented Jan 3, 2020

Hi @kleini!

The CircleCI built fails because the library manager doesn't find the 1.0 version of the Ticker library. Can we use the 3.1.5 version of the library?

Thanks!

@kleini
Copy link
Collaborator Author

kleini commented Jan 4, 2020

I had similar problems locally. PlatformIO is not able to define proper dependencies for libraries in Arduino core if they are with a same name in PlatformIO library registry. Version 3.1.5 has a very different API and I even doubt, that Ticker in Arduino core is same/similar to Ticker in PlatformIO library registry. I will have a look, whether it makes sense to use Ticker 3.1.5 and therefore I have to look into the implementations, how good or bad implemented they are.

@bodiroga
Copy link
Collaborator

bodiroga commented Jan 5, 2020

Hi Marcus! (@kleini)

Thanks for your fast response, but I have one question: if Ticker is already embedded in the esp8266 and esp32 arduino core frameworks, why do we need to declare it in the library.json file? It is going to be always available, isn't it? There must be something that I don't fully understand 😞

Thank you for your work!

@kleini
Copy link
Collaborator Author

kleini commented Jan 5, 2020

Try to build the simplest possible Homie device and configure lib_ldf_mode = off. Then the source files of the project are not scanned for libraries, that need to be included and they need to be specified:
https://docs.platformio.org/en/latest/librarymanager/ldf.html#dependency-finder-mode
Last year there was a lot of confusion when compiling code for my devices. Mostly builds worked some time and one month later they did not compile any more. Especially because I like to use SSL encrypted MQTT connections. Furthermore the code often compiled but did not work any more due to changed library code. I wanted to control this in more detail and turned therefore the library dependency finder off.

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 this pull request may close these issues.

2 participants