I have a difficult time using libraries in Workbench. There are a couple of scenarios, and I’d like to know the proper process for getting each one setup:
Scenario 1 - Using a library from the Particle cloud
Honestly, this one seems pretty straight forward. I use “Particle Install Library” and install to my local folder from the Particle Cloud. This reliably allows a library to be included in my project using the #include <library.h> syntax. In other words, both cloud and local compile work in this case.
Scenario 2 - Using a library that’s not in the Particle cloud
I can only get this to work for the simplest scenario imaginable. If I have a .h file and a .cpp file in the same directory as my .ino then life is good (I think). If I want to start making folders in my project and organizing things in to folders and subfolders then it all goes south. Neither Intellisense nor the compiler seem to be able to find anything.
Scenario 3 - Using a local copy of a library that exists in the Particle cloud, but a newer/alternate version (likely from github)
I get the idea that there are steps needed beyond just downloading the library and sorting out the issues I have in scenario 2.
I’m assuming all of this will eventually be covered in the docs for Workbench. Right now the only reference I can find to libraries is for the Particle libs.