I am trying to flash my project to my argon board and I have a few libraries (Arduino JSON, Arduino IRremote, MQTT-TLS) for the project in a “lib” folder outside of the “src” folder. When I compile it throws an error saying it cannot find the include IRremote.h which does exist in the library folder in the lib directory.
Is there a certain way I need to structure my project for the workbench to find the libraries?
Ah, I did not know about the install library command. How does the command work, what do I enter because the description of what I am suppose to type in (“Which Library?”) in visual studio code isn’t very helpful?
All I did to add the libraries was manually create folder in the project and manually copy them in.
That would be the name of the library
If you don't know the exact name, you can use CLI (e.g. via the command "Particle: Launch CLI") and use its search feature particle library search <yourPartialLibName>.
When installing (or manually copying) libs you need to remove the examples folder from the libraries otherwise the compile will be confused with multiple implementations for setup() and loop().
Where did you get the Arduino-IRremote library from?
I can only find these four libraries when searching irremote
IRremote 0.0.3 21752 IR Remote Control
DAIRremote 1.9.0 101
IRremoteLearn 0.0.1 55 IR Remote Control for Learner IR receivers
BeanSQ-IRremote 0.0.1 19 Particle Port v2.2.1-- Send and receive infrared signals with multiple protocols
Also I don’t know of a Arduino-JSON library with a hyphen in then name.